predict.rgam: Predict method for RGAM fits

Description Usage Arguments Details Value Author(s)

Description

Obtains predictions from a robustly fitted generalized additive model object

Usage

1
2
## S3 method for class 'rgam'
predict(object, type = c("link", "response", "terms"), ...)

Arguments

object

a fitted rgam object

type

a character string specifying the type of predictions. Can be one of ‘link’ (the default), ‘response’, or ‘terms’.

...

additional arguments passed from other methods

Details

Serves as the extractor function on objects of class rgam.

Value

the component of the ‘object’ based on the value of type: if the ‘code’ is ‘response’, returns the $fitted.values; if the type is ‘link’, returns the $additive.predictors; and if the type is ‘terms’, returns the $smooth component.

Author(s)

Matias Salibian-Barrera matias@stat.ubc.ca and Davor Cubranic cubranic@stat.ubc.ca


rgam documentation built on May 2, 2019, 11:26 a.m.