[R] Tukey HSD (or other post hoc tests) following repeated measures ANOVA

Dieter Menne dieter.menne at menne-biomed.de
Wed May 28 12:31:41 CEST 2008


Ullrich Ecker <ullrich.ecker <at> uwa.edu.au> writes:

> I am fairly new to R, and I am aware that others have had this 
> problem before, but I have failed to solve the problem from previous 
> replies I found in the archives.
> 
> Now, I want to calculate a post-hoc test following up a within-subjects ANOVA.


Probably the best is package multcomp. By default, it gives confidence
intervals, which is certainly much better than p-values. Haven't tried if you
can get p-values.

Dieter


library(multcomp)
amod <- aov(breaks ~ wool + tension, data = warpbreaks)
wht <- glht(amod, linfct = mcp(tension = "Tukey"))



More information about the R-help mailing list