| predict.sda {sparseLDA} | R Documentation |
Prediction functions for link{sda} and link{smda}.
## S3 method for class 'sda': predict(object, newdata = NULL, ...) ## S3 method for class 'smda': predict(object, newdata = NULL, ...)
object |
an object of class link{sda} or link{smda}
|
newdata |
a matrix or data frame of predictors |
... |
arguments passed to link[MASS]{predict.lda}
|
The current implementation for mixture discriminant models current predicts the subclass probabilities.
A list with components:
class |
The classification (a factor) |
posterior |
posterior probabilities for the classes (or subclasses for link{smda}) |
x |
the scores |