[R] Tukey HSD (or other post hoc tests) following repeated measures ANOVA
Ullrich Ecker
ullrich.ecker at uwa.edu.au
Fri May 30 06:10:56 CEST 2008
Thanks, Dieter,
but as far as I understand, 'glht' does not support objects of class
'aovlist' either. I mean, I know there is a "TukeyHSD" function out
there, but that's the problem: repeated measures ANOVA yields an
aovlist object, and TukeyHSD calls for an aov object.
And I don't know if confidence intervals are "certainly much better
than p-values". What I do know is that most journals of psychology
(and medicine, neuroscience, ...for that matter) usually require
p-values be reported.
Still hope someone can help...
Ullrich
At 06:31 PM 28/05/2008, you wrote:
>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"))
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list