Learn R Programming

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

Regularization Paths for Regression Models with Grouped Covariates

grpreg is an R package for fitting the regularization path of linear regression, GLM, and Cox regression models with grouped penalties. This includes group selection methods such as group lasso, group MCP, and group SCAD as well as bi-level selection methods such as the group exponential lasso, the composite MCP, and the group bridge. Utilities for carrying out cross-validation as well as post-fitting visualization, summarization, and prediction are also provided.

Install

  • To install the latest release version from CRAN: install.packages("grpreg")
  • To install the latest development version from GitHub: remotes::install_github("pbreheny/grpreg")

Get started

See the "getting started" vignette

Learn more

Follow the links under "Learn more" at the grpreg website

Details of the algorithms used

Copy Link

Version

Install

install.packages('grpreg')

Monthly Downloads

4,188

Version

3.4.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Patrick Breheny

Last Published

July 26th, 2021

Functions in grpreg (3.4.0)

grpreg

Fit a group penalized regression path
birthwt.grpreg

Risk Factors Associated with Low Infant Birth Weight
Lung

VA lung cancer data set
gen_nonlinear_data

Generate nonlinear example data
grpreg-package

Regularization paths for regression models with grouped covariates
AUC.cv.grpsurv

Calculates AUC for cv.grpsurv objects
cv.grpreg

Cross-validation for grpreg/grpsurv
Birthwt

Risk Factors Associated with Low Infant Birth Weight
gBridge

Fit a group bridge regression path
expand_spline

Expand feature matrix using basis splines
residuals.grpreg

Extract residuals from a grpreg or grpsurv fit
plot.grpsurv.func

Plot survival curve for grpsurv model
plot.grpreg

Plot coefficients from a "grpreg" object
plot.cv.grpreg

Plots the cross-validation curve from a cv.grpreg object
grpsurv

Fit an group penalized survival model
logLik.grpreg

logLik method for grpreg
select.grpreg

Select an value of lambda along a grpreg path
summary.cv.grpreg

Summarizing inferences based on cross-validation
predict.grpreg

Model predictions based on a fitted grpreg object
predict.grpsurv

Model predictions for grpsurv objects
plot_spline

Plot spline curve for a fitted additive model