[R-sig-eco] aov vs. glm

Lara R. Appleby 04 Lara.R.Appleby.04 at Alum.Dartmouth.ORG
Fri Nov 11 00:22:47 CET 2011


I'm trying to basically do a two way ANOVA on the dependent variable (clutchsize)  
with the two independent variables (treatment and species). It seems that there  
are three ways I can say this in R:

1. glm(clutchsize~treatment*species)
2. aov(clutchsize~treatment*species)
3. anova(lm(clutchsize~treatment*species)

Methods 2 and 3 yield equivalent results, but Method 1 is completely different!  


Any idea why?

Lara Appleby



More information about the R-sig-ecology mailing list