SOS: Solution path for sparse discriminant analysis
Description
Compute the solution path for sparse optimal scoring (SOS).
Usage
SOS(x,y,standardize=FALSE,lambda=NULL,eps=1e-7)
Arguments
x
Input matrix of predictors. x is of dimension \(N \times p\); each row is an observation vector.
y
An n-dimensional vector containing the class labels. The classes have to be labeled as 1 and 2.
standardize
A logic object indicating whether x should be standardized before performing SOS. Default is FALSE.
lambda
A sequence of lambda's. If lambda is missed, the function will automatically generates a sequence of lambda's to fit model.
eps
Convergence threshold for coordinate descent, the same as in glmnet. Default is 1e-7.
Value
beta
Output variable coefficients for each lambda.
lambda
The sequence of lambda's used in computing the solution path.
Details
The function obtains the solution path of sparse optimal scoring model through dsda.
References
Mai, Q. and Zou, H. (2013), "A note on the connection and equivalence of three sparse linear discriminant analysis methods." Technometrics, 55, 243-246.