Learn R Programming

scam (version 1.2-17)

Predict.matrix.mpi.smooth: Predict matrix method functions for SCAMs

Description

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

Usage

# S3 method for mpi.smooth
Predict.matrix(object, data)
# S3 method for lmpi.smooth
Predict.matrix(object, data)
# S3 method for miso.smooth
Predict.matrix(object, data)
# S3 method for mifo.smooth
Predict.matrix(object, data)
# S3 method for mpd.smooth
Predict.matrix(object, data)
# S3 method for cv.smooth
Predict.matrix(object, data)
# S3 method for cx.smooth
Predict.matrix(object, data)
# S3 method for micx.smooth
Predict.matrix(object, data)
# S3 method for micv.smooth
Predict.matrix(object, data)
# S3 method for mdcx.smooth
Predict.matrix(object, data)
# S3 method for mdcv.smooth
Predict.matrix(object, data)
# S3 method for po.smooth
Predict.matrix(object, data)
# S3 method for mpdBy.smooth
Predict.matrix(object, data)
# S3 method for mpiBy.smooth
Predict.matrix(object, data)
# S3 method for cxBy.smooth
Predict.matrix(object, data)
# S3 method for cvBy.smooth
Predict.matrix(object, data)
# S3 method for mdcxBy.smooth
Predict.matrix(object, data)
# S3 method for mdcvBy.smooth
Predict.matrix(object, data)
# S3 method for micxBy.smooth
Predict.matrix(object, data)
# S3 method for micvBy.smooth
Predict.matrix(object, data)
# S3 method for tedmd.smooth
Predict.matrix(object, data)
# S3 method for tedmi.smooth
Predict.matrix(object, data)
# S3 method for tesmd1.smooth
Predict.matrix(object, data)
# S3 method for tesmd2.smooth
Predict.matrix(object, data)
# S3 method for tesmi1.smooth
Predict.matrix(object, data)
# S3 method for tesmi2.smooth
Predict.matrix(object, data)
# S3 method for temicx.smooth
Predict.matrix(object, data)
# S3 method for temicv.smooth
Predict.matrix(object, data)
# S3 method for tedecx.smooth
Predict.matrix(object, data)
# S3 method for tedecv.smooth
Predict.matrix(object, data)
# S3 method for tescx.smooth
Predict.matrix(object, data)
# S3 method for tescv.smooth
Predict.matrix(object, data)
# S3 method for tecvcv.smooth
Predict.matrix(object, data)
# S3 method for tecxcv.smooth
Predict.matrix(object, data)
# S3 method for tecxcx.smooth
Predict.matrix(object, data)
# S3 method for tismi.smooth
Predict.matrix(object, data)
# S3 method for tismd.smooth
Predict.matrix(object, data)

Value

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

Arguments

object

A smooth object, usually generated by a smooth.construct method having processed a smooth specification object generated by an s term in a scam formula.

data

A data frame containing the values of the named covariates at which the smooth term is to be evaluated.

Author

Natalya Pya <nat.pya@gmail.com>

References

Pya, N. and Wood, S.N. (2015) Shape constrained additive models. Statistics and Computing, 25(3), 543-559

Pya, N. (2010) Additive models with shape constraints. PhD thesis. University of Bath. Department of Mathematical Sciences

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