8. 17/03/2016 Oneway ANOVA (CRp design)
http://www.unikiel.de/psychologie/rexrepos/posts/anovaCRp.html 8/12
plot of chunk rerAnovaCRp02
Using glht() from package multcomp
library(multcomp) # for glht()
tukey <‐ glht(aovCRp, linfct=mcp(IV="Tukey"))
summary(tukey)
Simultaneous Tests for General Linear Hypotheses
Multiple Comparisons of Means: Tukey Contrasts
Fit: aov(formula = DV ~ IV, data = dfCRp)
Linear Hypotheses:
Estimate Std. Error t value Pr(>|t|)
B ‐ A == 0 0.9162 1.0663 0.859 0.826
C ‐ A == 0 1.9068 1.0324 1.847 0.255
D ‐ A == 0 2.3351 1.0451 2.234 0.119
C ‐ B == 0 0.9906 1.0603 0.934 0.786
D ‐ B == 0 1.4189 1.0726 1.323 0.550
D ‐ C == 0 0.4283 1.0389 0.412 0.976
(Adjusted p values reported ‐‐ single‐step method)