Description Usage Arguments Value
View source: R/post_lasso_cv.R
This function contains the core parts of the CV for Lasso and Post-Lasso
1 |
x |
covariate matrix to be used in CV |
y |
vector of outcomes |
w |
vector of weight |
d |
vector of treament indicators |
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 |
family |
Outcome family, currenlty "gaussian" and "binomial" supported |
... |
Pass |
MSE_lasso / MSE_post_lasso: means squared errors for each lambda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.