af.lasso | R Documentation |
Applies LASSO regression and returns data.frame with important predictors.
af.lasso(data, output = NULL, control = caret::trainControl(method = "boot", number = 30))
data |
data.frame containing data. |
output |
index or name of criterion in data. |
y |
numeric vector. |
data=data.frame(y=rnorm(100),x1=rnorm(100),x2=rnorm(100)); af.lasso(data,"y1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.