anova.gam

0th

Percentile

Analysis of Deviance for a Generalized Additive Model

Produces an ANODEV table for a set of GAM models, or else a summary for a single GAM model

Keywords
models, regression, nonparametric
Usage
## S3 method for class 'gam':
anova(object, \dots, test)
## S3 method for class 'gam':
summary(object, dispersion=NULL,\dots)
Arguments
object
a fitted gam
...
other fitted gams for anova
test
a character string specifying the test statistic to be used. Can be one of '"F"', '"Chisq"' or '"Cp"', with partial matching allowed, or 'NULL' for no test.
dispersion
a dispersion parameter to be used in computing standard errors
Details

These are methods for the functions anova or summary for objects inheriting from class `gam'. See anova for the general behavior of this function and for the interpretation of `test'.

When called with a single `gam' object, a special anova table for `gam' models is returned. This gives a breakdown of the degrees of freedom for all the terms in the model, separating the projection part and nonparametric part of each. For example, a term specified by `s()' is broken down into a single degree of freedom for its linear component, and the remainder for the nonparametric component. In addition, a type of score test is performed for each of the nonparametric terms. The nonparametric component is set to zero, and the linear part is updated, holding the other nonparametric terms fixed. This is done efficiently and simulataneously for all terms.

keywords

smooth

References

Hastie, T. J. (1992) Generalized additive models. Chapter 7 of Statistical Models in S eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole.

Hastie, T. and Tibshirani, R. (1990) Generalized Additive Models. London: Chapman and Hall.

Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. New York: Springer.

Aliases
  • anova.gam
  • summary.gam
Examples
data(gam.data)
gam.object <- gam(y~s(x,6)+z,data=gam.data)
anova(gam.object)
gam.object2 <- update(gam.object, ~.-z)
anova(gam.object, gam.object2, test="Chisq")
Documentation reproduced from package gam, version 0.9, License: GPL2.0

Community examples

Looks like there are no examples yet.