Skip to content
Prev 157246 / 398506 Next

Type I and Type III SS in anova

Dear Menelaos,
On
No.
model<-aov(y~a*b)
/
in
If you use "type-III" tests in an unbalanced ANOVA, and want to test
sensible hypotheses, you should use an orthogonal row-basis for the effects,
such as is provided by contr.helmert, contr.poly, or contr.sum, but not by
the default contr.treatment. When you fit a model before changing the
contrast type, contr.treatment is used. Changing the contrast type
subsequent to that has no effect on a model that's already fit (how could
it, unless, e.g., the model is updated?). Because the summary method for aov
objects reports "typei-I" (sequential) tests, the results are independent of
the contrast type.

Regards,
 John
http://www.R-project.org/posting-guide.html