glmnetUtils v1.1

0

Monthly downloads

0th

Percentile

by Hong Ooi

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.

Readme

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

Functions in glmnetUtils

Name Description
glmnet Formula interface for elastic net modelling with glmnet
glmnet.model.matrix Model matrix options for glmnet
cv.glmnet Formula interface for elastic net cross-validation with cv.glmnet
cva.glmnet Do elastic net cross-validation for alpha and lambda simultaneously
glmnetUtils Utilities for glmnet
No Results!

Vignettes of glmnetUtils

Name
intro.rmd
No Results!

Last month downloads

Details

Type Package
NeedsCompilation no
VignetteBuilder knitr
Copyright Microsoft
License GPL-2
URL https://github.com/Hong-Revo/glmnetUtils
Collate 'glmnetUtils.r' 'cvGlmnetFormula.r' 'cvaGlmnetFormula.r' 'glmnetFormula.r' 'makeModelComponents.r'
RoxygenNote 6.0.1
Packaged 2017-08-01 12:02:41 UTC; hongooi
Repository CRAN
Date/Publication 2017-08-01 12:37:24 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/glmnetUtils)](http://www.rdocumentation.org/packages/glmnetUtils)