glmnetUtils
Some quality-of-life functions to streamline the process of fitting elastic net models with glmnet, specifically:
glmnet.formulaprovides a formula/data frame interface toglmnet.cv.glmnet.formuladoes a similar thing forcv.glmnet.- Methods for
predictandcoeffor both the above. - A function
cvAlpha.glmnetto choose both the alpha and lambda parameters via cross-validation, following the approach described in the help page forcv.glmnet. Optionally does the cross-validation in parallel. - Methods for
plot,predictandcoeffor the above.
You can install the development version from Github using devtools::install_github.
install.packages("devtools")
library(devtools)
install_github("hong-revo/glmnetUtils")
library(glmnetUtils)