anova
for objects inheriting
from class
glm
.
See
anova
for the general behavior of this function
and for the interpretation of
test
.
anova.glm(object, ..., test)
When called with a single
glm
object,
anova.glm
may take a
while to run, because it fully iterates a series of
glm
models.
The series is constructed by successively adding to the null
model all the terms in
object
, taken in the order
they appear in
terms(object)
.
Some efficiency is achieved by computing the model matrix only once,
and using
glm.fit
to perform the computations.
Chambers, J.M., and Hastie, T.J. (1991). Statistical Models in S, pp. 210-213.