Learn R Programming

mdatools (version 0.14.1)

predict.plsda: PLS-DA predictions

Description

Applies PLS-DA model to a new data set

Usage

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

Value

PLS-DA results (an object of class plsdares)

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.