Description Usage Arguments Details Value Author(s) See Also Examples
Performs (n-fold) cross-validation of the lasso (via
cv.glmnet
) and determines the prediction
optimal set of parameters.
1 2 3 4 |
x |
numeric design matrix (without intercept) of dimension n * p. |
y |
response vector of length n. |
nfolds |
the number of folds to be used in the cross-validation |
grouped |
corresponds to the |
... |
further arguments to be passed to
|
The function basically only calls cv.glmnet
, see source
code.
Vector of selected predictors.
Lukas Meier
hdi
which uses lasso.cv()
by default;
cv.glmnet
.
An alternative for hdi()
: lasso.firstq
.
1 2 3 4 |
Loading required package: scalreg
Loading required package: lars
Loaded lars 1.2
[1] 1 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.