Skip to content
Prev 280034 / 398506 Next

multiple comparison of interaction of ANCOVA

On 2011-12-12 1:48, Richard M. Heiberger wrote:
Thank you very much for the advice. The plots seem to be that I hope to get.
Apart from the data set here, is there a way to do multiple comparison 
on the interaction of one way analysis of covariance?

BTW, when loading HH package, the TukeyHSD() from stats package can not 
be use. The following is the output:

 > mydata.aov <- aov(y~Trt, mydata)
 > TukeyHSD(mydata.aov)
   Tukey multiple comparisons of means
     95% family-wise confidence level

Fit: aov(formula = y ~ Trt, data = mydata)

$Trt
       diff       lwr        upr     p adj
B-A  5.004  3.275115  6.7328854 0.0000149
C-A -2.320 -4.048885 -0.5911146 0.0097872
C-B -7.324 -9.052885 -5.5951146 0.0000003

 > library(HH)
Loading required package: lattice
Loading required package: grid
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: splines
Loading required package: leaps
Loading required package: RColorBrewer
Loading required package: latticeExtra
Warning messages:
1: package 'HH' was built under R version 2.13.2
2: package 'mvtnorm' was built under R version 2.13.2
3: package 'leaps' was built under R version 2.13.2
4: package 'RColorBrewer' was built under R version 2.13.2
5: package 'latticeExtra' was built under R version 2.13.2
 > TukeyHSD(mydata.aov)
       height

After detach(package:HH), TukeyHSD(mydata.aov) can output the correct 
results.

Thanks again.

Regards,
Jinsong