# devtools::install_github("lbassan/attritevis", dependencies = TRUE)
library(attritevis)
library(ggrepel)
test_data <- read.csv("./test_data.csv")
names(test_data)
[1] "X" "consent" "age" "sex"
[5] "education" "state" "income" "part_id"
[9] "race" "religion" "attrition_1" "attrition_2"
[13] "cards_a" "pa" "pb_1" "pb_2"
[17] "pb_3" "pc" "cards_b" "p2a"
[21] "p2b_1" "p2b_2" "p2b_3" "p2c"
[25] "treat1" "Happy_1_1" "Happy_1_2" "Happy_1_3"
[29] "cards1" "X1a" "X1b_1" "X1b_2"
[33] "X1b_3" "X1c" "treat2" "Happy_2_1"
[37] "Happy_2_2" "Happy_2_3" "cards2" "X2a"
[41] "X2b_1" "X2b_2" "X2b_3" "X2c"
[45] "treat3" "Happy_3_1" "Happy_3_2" "Happy_3_3"
[49] "cards3" "X3a" "X3b_1" "X3b_2"
[53] "X3b_3" "post1" "post2_7" "post3"
[57] "post4" "post5" "post6" "post7"
[61] "post8" "post9" "post10" "post11_1"
[65] "post11_8" "post13_1" "post14_1" "post15_1"
[69] "post16_1" "post17" "ideology" "trump_approval"
[73] "pres_approval"