Utilities for 'Glmnet'

Provides a formula interface for the 'glmnet' package for elasticnet regression, a method for cross-validating the alpha parameter, and other quality-of-life tools.


glmnetUtils

R-CMD-check

Some quality-of-life functions to streamline the process of fitting elastic net models with glmnet, specifically:

  • glmnet.formula provides a formula/data frame interface to glmnet.
  • cv.glmnet.formula does a similar thing for cv.glmnet.
  • Methods for predict and coef for both the above.
  • A function cva.glmnet to choose both the alpha and lambda parameters via cross-validation, following the approach described in the help page for cv.glmnet. Optionally does the cross-validation in parallel.
  • Methods for plot, predict and coef for the above.

You can install the development version from Github using devtools::install_github.

install.packages("devtools")
library(devtools)
install_github("hongooi73/glmnetUtils")
library(glmnetUtils)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("glmnetUtils")

1.1.9 by Hong Ooi, 3 years ago


https://github.com/hongooi73/glmnetUtils


Browse source code at https://github.com/cran/glmnetUtils


Authors: Microsoft [cph] , Hong Ooi [aut, cre]


Documentation:   PDF Manual  


GPL-2 license


Imports stats, graphics, grDevices, glmnet, parallel, Matrix

Suggests knitr, rmarkdown, MASS, doParallel, testthat


Imported by LKT, regmhmm.

Depended on by multimedia.

Suggested by broom, condvis2, plotmo.


See at CRAN