predict.msda {msda} | R Documentation |
make predictions from a "msda" object.
Description
This functions predicts class labels from a fitted msda
object.
Usage
## S3 method for class 'msda'
predict(object, newx, ...)
Arguments
object |
fitted |
newx |
matrix of new values for |
... |
Not used. Other arguments to predict. |
Value
predicted class label(s) at the entire sequence of the penalty parameter lambda
used to create the model.
Author(s)
Qing Mai <mai@stat.fsu.edu>, Yi Yang <yi.yang6@mcgill.ca>, Hui Zou <hzou@stat.umn.edu>
Maintainer: Yi Yang <yi.yang6@mcgill.ca>
References
Mai, Q.*, Yang, Y.*, and Zou, H. (2014), "Multiclass Sparse Discriminant Analysis." Submitted to Journal of the American Statistical Association. (* co-first author)
URL: https://github.com/archer-yang-lab/msda
See Also
Examples
data(GDS1615)
x<-GDS1615$x
y<-GDS1615$y
obj <- msda(x = x, y = y)
pred<-predict(obj,x)
[Package msda version 1.0.4 Index]