Skip to content
Prev 2497 / 7420 Next

aov vs. glm

On Fri, 2011-11-11 at 13:01 +1100, Scott Foster wrote:
anova(mod, test = "F")

will give the sequential sums of squares for a GLM mod ( mod <-
glm(....) ) and 'family = "gaussian"` - which is the default in glm().

Lara:

Each ( glm(), lm() and aov() ) all fit the same model *and* report the
same sums of squares in the "ANOVA" table if one asks for the "ANOVA" in
the correct way. summary(glm(....)) is not an "ANOVA" table.

That aov() does things differently - i.e. the summary() methods print
the ANOVA table - is cover in ?aov. The main purpose of avo() is to
present result in a manner that may be more familiar with textbooks and
other stats software ANOVA.

HTH

G