Displaying 1 result from an estimated 1 matches for "cntrs".
Did you mean:
cnrs
2007 Sep 15
1
Cannot get contrasts to work with aov.
...27 495.1 18.3
However, for everything I've tried, I've simply gotten
Df Sum Sq Mean Sq F value Pr(>F)
trt 8 17919.7 2240.0 122.16 < 2.2e-16 ***
Residuals 27 495.1 18.3
I have done
trt <- as.factor(trt)
contrasts(trt) <- cntrs
when I then type contrasts(trt), it returns what I expect.
However, whether I try
test <- aov(time2 ~ trt)
test <- aov(time2 ~ trt, contrasts=contrasts(trt))
test <- aov(time2 ~ C(trt, cntrs, how.many=8))
or anything else I can think of, I only get what I posted above. I'm
assu...