Variable Selection under Ranked Sparsity Principles for Interactions and Polynomials
Overview
An implementation of ranked sparsity methods, including penalized regression methods such as the sparsity-ranked lasso, its non-convex alternatives, and elastic net, as well as the sparsity-ranked Bayesian Information Criterion. As described in Peterson and Cavanaugh (2022) doi:10.1007/s10182-021-00431-7, ranked sparsity is a philosophy with methods primarily useful for variable selection in the presence of prior informational asymmetry, which occurs in the context of trying to perform variable selection in the presence of interactions and/or polynomials. Ultimately, this package attempts to facilitate dealing with cumbersome interactions and polynomials while not avoiding them entirely. Typically, models selected under ranked sparsity principles will also be more transparent, having fewer falsely selected interactions and polynomials than other methods.
- Fixed issue in CRAN CMD CHECK on Linux caused by setting an attribute on a built-in
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-18
- ERROR12 OK, 1 ERROR2026-09-12
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 2 earlier changesHide 2 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 16 (1 internal)includes a package overview page
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 10%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 13%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 19
- Median days to close, 50 most recently updated closed PRs
- 6
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/petersonr/sparser on 2026-10-18.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2025-04-14 · The repository has a site deploy workflow
pkgdown site last built 2025-04-14
Show all practicesHide 1 practice
Dependencies
Installing sparseR adds 55 packages (28 with compiled code, 44 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2022-08-17
- Total releases
- 7 / 4 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5
- Bundled data
- 44 KB / 3 files
- Download size
- 1.8 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("sparseR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1007/s10182-021-00431-7.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.