Skip to content

sparseR

0.3.2

Variable Selection under Ranked Sparsity Principles for Interactions and Polynomials

0packages depend
3.1Kdownloads / year
87.9%test coverage
13/13checks pass

Overview

About
Maintained by Ryan Andrew PetersonFirst published 2022-08-177 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 5.0 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.35
87.9%
Coverage · measured lines
92%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 189 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
13%

Downloads

3.1K
CRAN downloads in the past year
Rank #16,311 · ~8/day · ~256/mo
Daily download trend is not available in this view yet.
15430 days
65490 days
3.1K1 year
Compare downloads with other packages →
Also on109 r2u20 autocran

Repository

Repository
5Stars
3Forks
0Open issues
0Open PRs
4Releases
75Commits
3Contributors
75 commits · Last activity 2025-04-14 · -16.7% stars, 30d

Stars over time

2024-09-24 · 52026-07-25 · 5

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/petersonr/sparser on 2026-08-09.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.3.2Latest
    2025-04-14 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.3.1
    2024-07-18 · diff ↗
  • 0.3.0
    2024-06-26 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.3
    2023-12-06 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.2
    2023-03-29 · diff ↗
  • 0.2.1
    2022-11-10 · diff ↗
  • 0.2.0
    2022-08-17
  • R
    R 4.2.0 released · 2022-04-22

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
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("sparseR")
Peterson, R. A. (2025). sparseR: Variable Selection under Ranked Sparsity Principles for Interactions and Polynomials (Version 0.3.2) [Computer software]. https://doi.org/10.32614/CRAN.package.sparseR

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for sparseR version 0.3.2 [Data set]. HJJB, LLC. Data release v2026-08-11. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-11, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy