Regression Helper Functions
Overview
Methods for manipulating regression models and for describing these in a style adapted for medical journals. Contains functions for generating an HTML table with crude and adjusted estimates, plotting hazard ratio, plotting model estimates and confidence intervals using forest plots, extending this to comparing multiple models in a single forest plots. In addition to the descriptive methods, there are functions for the robust covariance matrix provided by the 'sandwich' package, a function for adding non-linearities to a model, and a wrapper around the 'Epi' package's Lexis() functions for time-splitting a dataset when modeling non-proportional hazards in Cox regressions.
- Fix documentation links (new CRAN policy)
- Fixed dplyr deprecation warning for across
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: Greg/tests/testthat/test-private_functions.R (.Label: 3, .Names: 1) '.Label' should be changed to 'levels'. '.Names' should be changed to 'names'.
NOTEdependencies in R coder-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Base package in Suggests/Enhances imported in NAMESPACE: ‘parallel’
r-devel-windows-x86_64
Base package in Suggests/Enhances imported in NAMESPACE: 'parallel'
- NOTE8 OK, 5 NOTENow
- NOTE10 OK, 3 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-11
- WARNING12 OK, 1 WARNING2026-05-10
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 48 (36 internal)includes a package overview page
- Examples that run
- 100%17 run in a plain check
- Exported functions with examples
- 92%
- Documented parameters
- 97%
- Return-value docs
- 75%
- Help pages citing references
- 2%
Downloads
Repository
- PRs merged (all time)
- 60%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/gforge/greg on 2026-10-22.
Dependencies
Installing Greg adds 84 packages (48 with compiled code, 82 MB of source tarballs). Heaviest: stringi 11 MB, TH.data 8.2 MB, ggplot2 6.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.0.3Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 2.0.22024-01-29 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.0.12022-11-16 · diff ↗
- 2.0.02022-10-13 · diff ↗
- 1.4.12022-08-07 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.4.02021-11-23 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.3.42020-06-25 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.3.32020-03-06 · diff ↗
- 1.3.22019-11-16 · diff ↗
Show 10 earlier eventsHide 10 earlier events
Package metadata
- First published
- 2016-03-28
- Total releases
- 14 / 10 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 213 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("Greg")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
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.