Description Usage Arguments Value Examples
This function takes non-zero variables after glmnet and returns a new formula. If any dummy created from a factor is non-zero, it will incluce the factor variable
1 | getform.glmnet(modelFit, lambda = modelFit$bestTune$lambda)
|
modelFit |
required: trained caret glmnet model |
lambda |
optional: a lambda penalty (default is modelFit$bestTune$lambda) |
A formula
1 | getform.glmnet(glmnetFit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.