[R] set type of SS in anova()

From: jeroenooms <j.c.l.ooms_at_uu.nl>
Date: Fri, 04 Jul 2008 15:36:47 -0700 (PDT)

When you use the 'general linear model' analysis in SPSS, the first result is a table with all terms with F-tests and significance values for all IV's. It uses http://joyx.joensuu.fi/~ek/anova/sstypes.txt SS Type III , which has the advantage that the order in which the variables are added to the model does not matter, and therefore it is relatively objective.

I would like to reproduce this output in R. However, when using anova(glm.object, test="F"), the F test shows "Terms added sequentially (first to last)". Because of this, the F values and p values of the terms depend on the sequence in which they were added. Eg: an anova() of glm(a~b+c) will give other results than glm(a~c+b).

How can I specify the SS type of an anova in R, so that i can reproduce the exact results as that i got in SPSS?

View this message in context: http://www.nabble.com/set-type-of-SS-in-anova%28%29-tp18287076p18287076.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 05 Jul 2008 - 06:42:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 05 Jul 2008 - 14:31:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive