reduceDF | R Documentation |
Applies LASSO regression and returns a data.frame with the most important predictors.
reduceDF(data, output = NULL, cutoff = 0.1, 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)); reduceDF(data,"y1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.