Learn R Programming

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

7,123

Version

3.5.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

September 3rd, 2024

Functions in grpreg (3.5.0)

grpsurv

Fit an group penalized survival model
logLik.grpreg

logLik method for grpreg
predict.cv.grpreg

Model predictions based on a fitted grpreg object
plot.grpreg

Plot coefficients from a "grpreg" object
select

Select an value of lambda along a grpreg path
predict.grpsurv

Model predictions for grpsurv objects
plot.cv.grpreg

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

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

Plot survival curve for grpsurv model
plot_spline

Plot spline curve for a fitted additive model
summary.cv.grpreg

Summarizing inferences based on cross-validation
expand_spline

Expand feature matrix using basis splines
gen_nonlinear_data

Generate nonlinear example data
AUC.cv.grpsurv

Calculates AUC for cv.grpsurv objects
Lung

VA lung cancer data set
grpreg

Fit a group penalized regression path
gBridge

Fit a group bridge regression path
cv.grpreg

Cross-validation for grpreg/grpsurv
grpreg-package

grpreg: Regularization Paths for Regression Models with Grouped Covariates
Birthwt

Risk Factors Associated with Low Infant Birth Weight
birthwt.grpreg

Risk Factors Associated with Low Infant Birth Weight