[R] TukeyHSD & Covariates

2004-12-15 Thread Damián Cirelli
Dear R gurus, I have the following model: appcov.aov <- aov(yield ~ prevyield + trt + block) where prevyield is a continuous numeric covariate and trt and block are factors (yes, I did factor()!) Now, when I do a TukeyHSD, my diff's are all screwed up! For instance: treatment mean for treatmen "E"

Re: [R] TukeyHSD & Covariates

2004-12-15 Thread Damián Cirelli
Here's what I get: > summary(lm(yield ~ prevyield + trt + block)) Call: lm(formula = yield ~ prevyield + trt + block) Residuals: Min 1Q Median 3Q Max -22.616 -9.254 2.051 10.687 19.421 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 38.5797

Re: [R] TukeyHSD & Covariates

2004-12-15 Thread Peter Dalgaard
Damián Cirelli <[EMAIL PROTECTED]> writes: > Dear R gurus, > I have the following model: > > appcov.aov <- aov(yield ~ prevyield + trt + block) > > where prevyield is a continuous numeric covariate and trt and block > are factors (yes, I did factor()!) > Now, when I do a TukeyHSD, my diff's are

Re: [R] TukeyHSD & Covariates

2004-12-15 Thread Damián Cirelli
I have interactions where I shouldn't so nevermind, I'm a dumb ass. Thanks again __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html