Description Usage Arguments Details Value Author(s) See Also Examples
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.