plasso | R Documentation |
glmnet
package to estimate the coefficient paths
and cross-validates least squares Lasso AND Post-LassoThis function uses the glmnet
package to estimate the coefficient paths
and cross-validates least squares Lasso AND Post-Lasso
plasso(x, y, w = NULL, kf = 10, ...)
x |
Matrix of covariates (number of observations times number of covariates matrix) |
y |
vector of outcomes |
w |
vector of weights |
kf |
number of folds in k-fold CV |
... |
Pass |
List with the names of selected variables at cross-validated minima for Lasso and Post-Lasso
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.