predict.plsda: PLS-DA predictions

View source: R/plsda.R

predict.plsdaR Documentation

PLS-DA predictions

Description

Applies PLS-DA model to a new data set

Usage

## S3 method for class 'plsda'
predict(object, x, c.ref = NULL, ...)

Arguments

object

a PLS-DA model (object of class plsda)

x

a matrix with x values (predictors)

c.ref

a vector with reference class values (should be a factor)

...

other arguments

Details

See examples in help for plsda function.

Value

PLS-DA results (an object of class plsdares)


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