predict.lspls {lspls}R Documentation

Predict Method for LS-PLS Models

Description

Predict method for "lspls" objects. It predicts response values or scores from new data.

Usage

## S3 method for class 'lspls':
predict(object, newdata, type = c("response", "scores"),
        na.action = na.pass, ...)

Arguments

object object of class "lspls". The fitted model to predict with.
newdata data frame. The new data.
type character. Wether to predict responses or scores.
na.action function determining what should be done with missing values in newdata. The default is to predict NA. See na.omit for alternatives.
... further arguments. Currently not used.

Value

When type = "response", a matrix with predicted response values is returned. When type = "scores", a matrix with predicted score values is returned.

Author(s)

Bjørn-Helge Mevik

See Also

lspls

Examples

##FIXME

[Package lspls version 0.1-1 Index]