How to compute the between-group mean difference?
By starting from this code, I would like to compute the between 7-time-point difference: data <- out %>% group_by(tests0, GROUP) %>% summarise( all = list(across(starts_with("score")) %>% { tibble( means = data.frame(map(., ~ mean(.x, na.rm = TRUE)) %>% set_names(., str_replace(names(.), "\\D+", "mean"))), stderrs = data.frame(map(., ~ std.error(.x, na.rm = TRUE)) %>% set_names(., str_replace(names(.), "\\D+", "stederr"))), ttest1 = data.frame(possibly(~ reduce(., ~ t.test(.x, .y, paired = TRUE))["estimate"], NA)(.)), ttest2 = data.frame(possibly(~ reduce(., ~ t.test(.x, .y, paired = TRUE))["p
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.