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, ...)
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)
Value
PLS-DA results (an object of class plsdares
)
Details
See examples in help for plsda
function.