I run the following commands
a1 <- aov(Ratio~(Condition*Event) + Error(Participant/(Condition*Event)), Data)
summary(a1)
That outputs the correct results (ANOVA tables etc).
When I run:
TukeyHSD(a1,”Condition”)
I get: Error in UseMethod(“TukeyHSD”) : no applicable method for “TukeyHSD”
Why does the ANOVA work, but not TukeyHSD? Both within factor variables are strings (Condition has 3 levels and Event has 4 levels).
EDIT:
When I redo the aov without the Error term it works, however Tukey shows no significant difference between any of the pairs (The ANOVA was significant for Confidence). Does this mean that Tukey’s is correcting for multiple comparisons?
aov()withError()returns a object with a class of"aovlist" "listof". TukeyHSD apparently doesn’t have a method for either of those classes.