predict.sda {sparseLDA} | R Documentation |
Predict method for Sparse Discriminant Methods
Description
Prediction functions for link{sda}
and link{smda}
.
Usage
## S3 method for class 'sda'
predict(object, newdata = NULL, ...)
## S3 method for class 'smda'
predict(object, newdata = NULL, ...)
Arguments
object |
an object of class |
newdata |
a matrix or data frame of predictors |
... |
arguments passed to |
Details
The current implementation for mixture discriminant models current predicts the subclass probabilities.
Value
A list with components:
class |
The classification (a factor) |
posterior |
posterior probabilities for the classes (or subclasses for |
x |
the scores |
[Package sparseLDA version 0.1-9 Index]