either "class", "prob" or "raw" to produce the predicted class, class probabilities or the raw model scores, respectively.
Value
For plsda, an object of class "plsda" and "mvr". The predict
method produces either a vector, matrix or three-dimensional array,
depending on the values of type of ncomp. For example,
specifying more than one value of ncomp with type =
"class" with produce a three dimensional array but the default
specification would produce a factor vector.
Details
If a factor is supplied, the appropriate indicator matrix is created by plsda.
A multivariate PLS model is fit to the indicator matrix using the plsr function.
To predict, the softmax function is used to normalize the model output into probability-like scores. The class with the largest score is the assigned output class.