Predict the class labels by direct sparse discriminant analysis.
# S3 method for dsda
predict(object, newx, z=NULL, ztest=NULL, gamma=NULL,...)An object returned by dsda or msda with binary setting.
An n by p matrix containing the predictors.
Input training covariates matrix. z can be omitted if there is no covariate.
Input testing covariates matrix. ztest can be omitted if there is no covariate.
Coefficients of covariates obtained from adjvec. gamma is NULL if there is no covariate.
Other arguments that can be passed to predict.
The the predicted class labels.
Mai, Q., Zou, H. and Yuan, M. (2013), "A direct approach to sparse discriminant analysis in ultra-high dimensions." Biometrika, 99, 29-42.