Compute an analysis of deviance table for more than one GLM
objects of class
a character string, (partially) matching one
anova.glm, specifying a single object
is not allowed.
The table has a row for the residual degrees of freedom and deviance for each model. For all but the first model, the change in degrees of freedom and deviance is also given. (This only makes statistical sense if the models are nested.) It is conventional to list the models from smallest to largest, but this is up to the user.
Models where the MLE lies on the boundary of the parameter space will be automatically removed from the list (with a warning), because asymptotic results to not apply to such models.
The table will optionally contain test statistics (and p-values)
comparing the reduction in deviance for the row to
the residuals. Mallows' Cp statistic is the residual
deviance plus twice the estimate of σ^2 times
the residual degrees of freedom, which is closely related
to AIC. You can also choose
for likelihood ratio tests and Rao's efficient score test.
The former is synonymous with
"Chisq" (although both
have an asymptotic chi-square distribution).
An object of class
"anova" inheriting from class
Mark W. Donoghoe [email protected]
## For an example, see example(logbin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.