predict.msda | R Documentation |
This functions predicts class labels from a fitted msda
object.
## S3 method for class 'msda'
predict(object, newx, ...)
object |
fitted |
newx |
matrix of new values for |
... |
Not used. Other arguments to predict. |
predicted class label(s) at the entire sequence of the penalty parameter lambda
used to create the model.
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>
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
msda
data(GDS1615)
x<-GDS1615$x
y<-GDS1615$y
obj <- msda(x = x, y = y)
pred<-predict(obj,x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.