Reproducing graphs
knitr::include_graphics(here::here("img","paper2graph.png"))
trust <- read_csv(here("research_data", "trust.csv")) %>%
clean_names()
names(trust)
[1] "id" "experiment"
[3] "age_group_participants" "condition_information"
[5] "gender_participants" "age_participants"
[7] "response" "hesitation_time"
[9] "notes"
trust %>%
tabyl(experiment, response) %>%
adorn_percentages()
experiment 0 1 NA_
1 0.3145161 0.6532258 0.03225806
2 0.4692308 0.4692308 0.06153846
trust <- trust %>%
mutate(agegroup = case_when(age_group_participants == 0 ~ "3-5 year olds",
age_group_participants == 1 ~ "5-6 year olds"),
condition = case_when(condition_information == 0 ~ "Inaccurate-Information Condition",
condition_information == 1 ~ "Accurate-Information Condition"))