I have a dataset with 6-time points and I hope to do multiple paired sample t-tests to compare the scores.
The data has been transformed into the long one
I want to achieve something like this table:
I tried to use the following code, but it does not work.
stat.test <- anxiety_score %>%
group_by(group) %>%
pairwise_t_test(
anxiety_score ~ time, paired = TRUE,
p.adjust.method = "bonferroni"
) %>%
select(-df, -statistic, -p) # Remove details
stat.test