Learn R Programming

⚠️There's a newer version (1.1.9) of this package.Take me there.

glmnetUtils

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 cvAlpha.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("hong-revo/glmnetUtils")
library(glmnetUtils)

Copy Link

Version

Install

install.packages('glmnetUtils')

Monthly Downloads

4,369

Version

1.0.2

License

GPL-2

Maintainer

Hong Ooi

Last Published

April 24th, 2017

Functions in glmnetUtils (1.0.2)

glmnetUtils

Utilities for glmnet
glmnet

Formula interface for elastic net modelling with glmnet
cva.glmnet

Do elastic net cross-validation for alpha and lambda simultaneously
cv.glmnet

Formula interface for elastic net cross-validation with cv.glmnet
glmnet.model.matrix

Model matrix options for glmnet