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

2008-05-30 Thread Mark Difford
Hi Ullrich, >> # what does '~1 | Subj/Cond' mean? It is equivalent to your aov() error structure [ ... +Error(Subj/Cond) ]. It gives you a set of random intercepts, one for each level of your nesting structure. ## To get some idea of what's being done it helps to have a continuous covariate in

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

2008-05-30 Thread Ullrich Ecker
Great, thanks a lot, guys! Only thing is I now have two working versions, that yield *slightly* different results. ACCaov <- aov(Acc ~ Cond + Error(Subj/Cond), WMU3C) ACClme <- lme(Acc ~ Cond, random = ~1 | Subj/Cond, WMU3C) # what does '~1 | Subj/Cond' mean? summary(glht(ACClme, linfct=mcp(Co

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

2008-05-30 Thread Mark Difford
Hi Ullrich, >> The model is >> RT.aov <- aov(RT~Cond + Error(Subj/Cond), WMU3C) >> I understand that TukeyHSD only works with an aov object, but that >> RT.aov is an aovlist object. You want to use lme() in package nlme, then glht() in the multcomp package. This will give you multiplicity adju

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

2008-05-29 Thread Ullrich Ecker
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

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

2008-05-28 Thread Dieter Menne
Ullrich Ecker 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. Prob

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

2008-05-28 Thread Ullrich Ecker
Hi everyone, 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. As this is such a standard procedure in psychological science, there must be an elegant solution to this...I think.