[R] GLM different results with the same factors
mark_difford at yahoo.co.uk
Sun Jul 24 18:50:47 CEST 2011
On Jul 24, 2011 Gaiarrido wrote:
> Why the order of the factors give different results? I suppose it's
> because the order of the
> factors, i've just changed "lcc" from the first position to the last in
> the model, and the significance
> change completely
> ...snip <
> Ijow can i know what's correct?
Both are correct. R's default anova uses sequential sums of squares and so
tests model terms sequentially. Reordering the factors in your model
therefore leads to different hypotheses being tested. You are looking for
what are often called Type II tests. To get them use drop1() on your glm
object or install the car package and use its Anova function.
Mark Difford (Ph.D.)
Nelson Mandela Metropolitan University
Port Elizabeth, South Africa
View this message in context: http://r.789695.n4.nabble.com/GLM-different-results-with-the-same-factors-tp3690471p3690556.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help