Learn R Programming

mgcv (version 1.3-31)

formula.gam: Extract the formula from a gam object

Description

Extracts the formula from a fitted gam object.

Usage

## S3 method for class 'gam':
formula(x,...)

Arguments

x
fitted model objects of class gam (see gamObject) as produced by gam().
...
un-used in this case

Value

  • A model formula.

Details

Returns x$formula. Provided so that anova methods print an appropriate description of the model.

See Also

gam