predict.dsda {TULIP} | R Documentation |
Prediction for direct sparse discriminant analysis
Description
Predict the class labels by direct sparse discriminant analysis.
Usage
## S3 method for class 'dsda'
predict(object, newx, z=NULL, ztest=NULL, gamma=NULL,...)
Arguments
object |
An object returned by |
newx |
An n by p matrix containing the predictors. |
z |
Input training covariates matrix. |
ztest |
Input testing covariates matrix. |
gamma |
Coefficients of covariates obtained from |
... |
Other arguments that can be passed to |
Value
pred |
The the predicted class labels. |
References
Mai, Q., Zou, H. and Yuan, M. (2013), "A direct approach to sparse discriminant analysis in ultra-high dimensions." Biometrika, 99, 29-42.
See Also
[Package TULIP version 1.0.2 Index]