CV_core | R Documentation |
This function contains the core parts of the CV for Lasso and Post-Lasso
CV_core(x, y, w, cvgroup, list, i, lambda, ...)
x |
covariate matrix to be used in CV |
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.