Learn R Programming

mdatools (version 0.5.3)

predict.pls: PLS predictions

Description

Applies PLS model to a new data set

Usage

## S3 method for class 'pls':
predict(object, x, y.ref = NULL, cv = F, ...)

Arguments

object
a PLS model (object of class pls)
x
a matrix with x values (predictors)
y.ref
a matrix with reference y values (responses)
cv
logical, are predictions for cross-validation or not
...
other arguments

Value

  • PLS results (an object of class plsres)

Details

See examples in help for pls function.