CV_core | R Documentation |
CV_core
contains the core parts of the cross-validation for Lasso and Post-Lasso.
CV_core(x, y, w, cvgroup, list, i, lambda, ...)
x |
Covariate matrix to be used in cross-validation |
y |
Vector of outcomes |
w |
Vector of weight |
cvgroup |
Categorical with k groups to identify folds |
list |
List 1:k |
i |
Number of fold that is used for prediction |
lambda |
Series of lambdas used |
... |
Pass |
MSE_lasso / MSE_plasso: means squared errors for each lambda.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.