predict.pls: PLS predictions

View source: R/pls.R

predict.plsR Documentation

PLS predictions

Description

Applies PLS model to a new data set

Usage

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

Arguments

object

a PLS model (object of class pls)

x

a matrix with x values (predictors)

y

a matrix with reference y values (responses)

cv

logical, shall predictions be made for cross-validation procedure or not

...

other arguments

Details

See examples in help for pls function.

Value

PLS results (an object of class plsres)


mdatools documentation built on Sept. 11, 2024, 7:59 p.m.