Determines the q predictors that enter the lasso path first.
1  lasso.firstq(x, y, q, ...)

x 
numeric design matrix (without intercept) of dimension n * p. 
y 
response vector of length n. 
q 
number of predictors that should be selected, a positive integer. 
... 
optional additional arguments to be passed to 
The lasso.firstq
function calls
glmnet
in a special way and simply postprocesses its
nonzero predictor list, see its source code.
Vector of selected predictors.
Lukas Meier
hdi
;
the default choice for hdi()
, lasso.cv
.
glmnet
1 2 3 4 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.