Chapter 15 Data management

This chapter describes the data management that is conducted prior to any analysis

15.1 Exclude observations

Exclude respondents who rush through the experiment. In line with the pre-registration, these are defined as respondents who spend less than 25 percent of the median time on answering the questions are excluded from the analysis.

d <- d %>%
  mutate(median = median(time, na.rm = TRUE)) %>% 
  filter(time >= 0.25*median  )

d %>% 
  write_sav("Data/Goodloser-exp3.sav") %>%  #Create data file, .sav format
  write.csv("Data/Goodloser-exp3.csv")  #Create data file, .csv format