Learn R Programming

SAM (version 1.2)

predict.samQL: Prediction function for S3 class "samQL"

Description

Predict responses for test data.

Usage

# S3 method for samQL
predict(object, newdata, ...)

Value

values

Predicted responses as an n by length(lambda) matrix.

Arguments

object

An object with S3 class "samQL".

newdata

Numeric test matrix with n rows and d columns.

...

Additional arguments passed to methods; currently unused.

Details

The test matrix is rescaled using the training X.min/X.ran, truncated to [0, 1], and expanded with the same spline basis used during training.

See Also

samQL