Description Usage Arguments Details Value Author(s) References Examples

The various built in smooth classes for use with `gam`

have associate `Predict.matrix`

method functions to enable prediction from the fitted model.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
## S3 method for class 'cr.smooth'
Predict.matrix(object, data)
## S3 method for class 'cs.smooth'
Predict.matrix(object, data)
## S3 method for class 'cyclic.smooth'
Predict.matrix(object, data)
## S3 method for class 'pspline.smooth'
Predict.matrix(object, data)
## S3 method for class 'tensor.smooth'
Predict.matrix(object, data)
## S3 method for class 'tprs.smooth'
Predict.matrix(object, data)
## S3 method for class 'ts.smooth'
Predict.matrix(object, data)
## S3 method for class 't2.smooth'
Predict.matrix(object, data)
``` |

`object` |
a smooth object, usually generated by a |

`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 |

.

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.

A matrix mapping the coeffients for the smooth term to its values at the supplied data values.

Simon N. Wood simon.wood@r-project.org

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

1 2 | ```
## see smooth.construct
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.