[R] type III Sum Sq in ANOVA table - Howto?

Josef Frank josef.frank at gmx.ch
Fri Mar 7 00:14:22 CET 2003


Hello,

as far as I see, R reports type I sums of squares. I'd like to get R to
print out type III sums of squares. 

e.g. I have the following model:
vardep~factor1*factor2

to get the type III sum of squares for factor1 I've tried
anova(lm(vardep~factor2+factor1:factor2),lm(vardep~factor1*factor2))
but that didn't yield the desired result.

Could anyone give me a hint how to proceed?

thanks in advance
Josef



More information about the R-help mailing list