Learn R Programming

mgcv (version 1.8-16)

Predict.matrix.cr.smooth: Predict matrix method functions

Description

The various built in smooth classes for use with gam have associate Predict.matrix method functions to enable prediction from the fitted model.

Usage

"Predict.matrix"(object, data) "Predict.matrix"(object, data) "Predict.matrix"(object, data) "Predict.matrix"(object, data) "Predict.matrix"(object, data) "Predict.matrix"(object, data) "Predict.matrix"(object, data) "Predict.matrix"(object, data)

Arguments

object
a smooth object, usually generated by a smooth.construct method having processed a smooth specification object generated by an s or te term in a gam formula.
data
A data frame containing the values of the (named) covariates at which the smooth term is to be evaluated. Exact requirements are as for smooth.construct and smooth.construct2

Value

Details

The Predict matrix function is not normally called directly, but is rather used internally by predict.gam etc. to predict from a fitted gam model. See Predict.matrix for more details, or the specific smooth.construct pages for details on a particular smooth class.

References

Wood S.N. (2006) Generalized Additive Models: An Introduction with R. Chapman and Hall/CRC Press.

Examples

Run this code
## see smooth.construct
 

Run the code above in your browser using DataLab