Re: [R] multi-comparison of means

2013-03-14 Thread meng
Many thanks At 2013-03-14 00:23:43,"Richard M. Heiberger" wrote: Meng, What seems to be going on is that the covariates are handled very differently in TukeyHSD and in glht. Please see the interaction_average and covariate_average arguments to glht. I ran your example twice, firs

Re: [R] multi-comparison of means

2013-03-13 Thread Richard M. Heiberger
Meng, What seems to be going on is that the covariates are handled very differently in TukeyHSD and in glht. Please see the interaction_average and covariate_average arguments to glht. I ran your example twice, first as you did, with the covariates after the factor. x2 is not significant if the

[R] multi-comparison of means

2013-03-13 Thread meng
Hi all: I have a question about multi-comparison. The data is in the attachment. My purpose: Compare the predicted means of the 3 methods(a,b,c) pairwisely. I have 3 ideas: #idea1 result_aov<-aov(y~ method + x1 + x2) TukeyHSD(result_aov) difflwr upr p adj b-a 0.845