To conduct a post-hoc test with a repeated measure design in R, you can use the pairwise.t.test
function. Here is an example code:
main.r283 chars6 lines
In the example code, my_data
is the name of your data frame, group
is the grouping variable, time
is the repeated measure variable, and value
is the dependent variable. The pairwise.t.test
function will conduct pairwise comparisons between each level of the grouping variable with a Bonferroni correction to adjust for multiple comparisons.
gistlibby LogSnag