predict.lspls: Predict Method for LS-PLS Models

Description Usage Arguments Value Author(s) See Also Examples

View source: R/predict.lspls.R

Description

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

Usage

1
2
3
## 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

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

Author(s)

Bjørn-Helge Mevik

See Also

lspls

Examples

1
##FIXME

lspls documentation built on May 2, 2019, 12:19 p.m.