lspls (version 0.2-2)

predict.lspls: 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 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.

See Also

lspls

Examples

Run this code
# NOT RUN {
##FIXME
# }

Run the code above in your browser using DataLab