Learn R Programming

Regularization paths for MCP and SCAD penalized regression models

ncvreg is an R package for fitting regularization paths for linear regression, GLM, and Cox regression models using lasso or nonconvex penalties, in particular the minimax concave penalty (MCP) and smoothly clipped absolute deviation (SCAD) penalty, with options for additional L2 penalties (the "elastic net" idea). Utilities for carrying out cross-validation as well as post-fitting visualization, summarization, inference, and prediction are also provided.

post-selection inference, see Breheny P (2019) Marginal false discovery rates for penalized regression models. Biostatistics, 20: 299-314 and Miller R and Breheny P (2023) Feature-specific inference for penalized regression using local false discovery rates. Statistics in Medicine, 42: 1412–1429.

Installation

To install the latest release version from CRAN:

install.packages("ncvreg")

To install the latest development version from GitHub:

remotes::install_github("pbreheny/ncvreg")

Copy Link

Version

Install

install.packages('ncvreg')

Monthly Downloads

4,200

Version

3.15.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Patrick Breheny

Last Published

February 11th, 2025

Functions in ncvreg (3.15.0)

plot.ncvsurv.func

Plot survival curve for ncvsurv model
permres

Permute residuals for a fitted ncvreg model
ncvfit

Direct interface for nonconvex penalized regression (non-pathwise)
plot.mfdr

Plot marginal false discovery rate curves
plot.ncvreg

Plot coefficients from a ncvreg object
plot.cv.ncvreg

Plots the cross-validation curve from a cv.ncvreg object
ncvreg

Fit an MCP- or SCAD-penalized regression path
ncvreg-package

ncvreg: Regularization Paths for SCAD and MCP Penalized Regression Models
perm.ncvreg

Permutation fitting for ncvreg
ncvsurv

Fit an MCP- or SCAD-penalized survival model
residuals.ncvreg

Extract residuals from a ncvreg or ncvsurv fit
predict.cv.ncvreg

Model predictions based on a fitted ncvreg object.
predict.ncvsurv

Model predictions based on a fitted ncvsurv object.
std

Standardizes a design matrix
summary.cv.ncvreg

Summarizing cross-validation-based inference
summary.ncvreg

Summary method for ncvreg objects
assign_fold

Assign folds for cross-validation
Lung

VA lung cancer data set
Prostate

Factors associated with prostate specific antigen
AUC.cv.ncvsurv

AUC for cv.ncvsurv objects
Heart

Risk factors associated with heart disease
boot_ncvreg

Hybrid Bootstrap Confidence Intervals
logLik.ncvreg

Extract Log-Likelihood
mfdr

Marginal false discovery rates
cv.ncvreg

Cross-validation for ncvreg/ncvsurv
local_mfdr

Estimate local mFDR for all features