A Comprehensive and Intuitive R Package for Stepwise Regression Analysis
Overview
Stepwise regression is a statistical technique used for model selection. This package streamlines stepwise regression analysis by supporting multiple regression types(linear, Cox, logistic, Poisson, Gamma, and negative binomial), incorporating popular selection strategies(forward, backward, bidirectional, and subset), and offering essential metrics. It enables users to apply multiple selection strategies and metrics in a single function call, visualize variable selection processes, and export results in various formats. StepReg offers a data-splitting option to address potential issues with invalid statistical inference and a randomized forward selection option to avoid overfitting. We validated StepReg's accuracy using public datasets within the SAS software environment. For an interactive web interface, users can install the companion 'StepRegShiny' package. The methodology is described in Li et al. (2026) doi:10.32614/RJ-2026-005.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
- NOTE11 OK, 1 NOTE2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 11 (1 internal)includes a package overview page
- Examples that run
- 60%6 run in a plain check · 4 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 36%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 198
- Median days to close, 50 most recently updated closed PRs
- 0
Commits over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/junhuili1017/stepreg on 2026-10-21.
Dependencies
Installing StepReg adds 64 packages (35 with compiled code, 68 MB of source tarballs). Heaviest: stringi 11 MB, TH.data 8.2 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Show 4 peopleHide 4 people
Pick two releases to compare their code metrics.
- 1.6.9Latest
- 1.6.82026-09-20 · diff ↗
- 1.6.72026-08-31 · diff ↗
- 1.6.62026-06-04 · diff ↗
- 1.6.52026-05-21 · diff ↗
- 1.6.42026-05-14 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.6.22026-01-11 · diff ↗
- 1.6.1
- 1.6.0
- RR 4.5.0 released · 2025-04-11
- 1.5.82025-02-07 · diff ↗
- 1.5.72025-01-22 · diff ↗
- 1.5.6
- 1.5.52024-11-04 · diff ↗
- 1.5.42024-10-13 · diff ↗
Show 27 earlier eventsHide 27 earlier events
- 1.5.32024-09-17 · diff ↗
- 1.5.22024-08-16 · diff ↗
- 1.5.1
- RR 4.4.0 released · 2024-04-24
- 1.5.02024-03-21 · diff ↗ ·
removed 3 exports
modelFitStat, stepwiseCox, stepwiseLogitadded 2 exports
StepRegShinyApp, report - RR 4.3.0 released · 2023-04-21
- 1.4.42022-12-17 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.4.32022-01-14 · diff ↗ ·
removed 3 exports
pattern:^[[:alpha:]]+, stepwiselogit, bestsubsetadded 3 exports
modelFitStat, stepwiseCox, stepwiseLogit - RR 4.1.0 released · 2021-05-18
- 1.4.2
- RR 4.0.0 released · 2020-04-24
- 1.4.12020-03-23 · diff ↗
- 1.4.02020-02-24 · diff ↗
- 1.3.42020-01-08 · diff ↗
- 1.3.32019-11-25 · diff ↗
- 1.3.22019-11-11 · diff ↗
- 1.3.12019-10-29 · diff ↗
- 1.3.02019-10-16 · diff ↗
- 1.2.12019-09-20 · diff ↗
- 1.2.02019-05-31 · diff ↗
- 1.1.02019-05-24 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.0.12019-01-17 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.0.02017-11-03
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-11-03
- Total releases
- 33 / 9 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL (>= 2) in 1.4.4
- Bundled data
- 42 KB / 5 files
- Download size
- 3.4 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("StepReg")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/rj-2026-005.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.