anova
Anova Tables

Description

Computes an ANOVA type object.
This function is an S Version 3 generic. Method functions for the classes glm, lm, lmlist and loess are included.

Usage

anova(object, ...)

Arguments

object a model object, such as the object created by lm, glm, or aov.
... More model objects similar to the first plus additional arguments passed to or from other methods. In particular, many methods implement a test argument with choices such as "none" (or NULL), "F", "Chi", and "Cp".

Details

If you call anova with a single object as an argument, anova produces a table with rows corresponding to each of the terms in the object, plus an additional row for the residuals. The method for aov objects is similar to summary.
When two or more objects are used in the call, a similar table is produced that shows the effects of the pairwise differences between the models, considered sequentially from first to last.
Value
returns an anova object. The anova class of object inherits from the class "data.frame", and acts much like a data.frame in most respects but has a special print method for it. The "heading" attribute, a character vector that is printed at the top of the table, is also included.
References
Chambers, J.M., and Hastie, T.J. (1991). Statistical Models in S. London: Chapman and Hall.
See Also
aov (to perform analysis of variance modeling), anova.lm, anova.glm, lm, glm, loess, summary.aov.
Examples
glm.object <- glm(Kyphosis ~ Start + Number, family = binomial, 
    data = Sdatasets::kyphosis)
anova(glm.object)

ff.mod.1 <- lm(Fuel ~ Weight, data=Sdatasets::fuel.frame) ff.mod.2 <- lm(Fuel ~ Weight + Disp., data=Sdatasets::fuel.frame) anova(ff.mod.1, ff.mod.2)

Package stats version 6.1.4-13
Package Index