Skip to content

Regression Helper Functions

0packages dependsuggested by 1
40.6Kdownloads / year
70.8%test coverage
8/13flavors OK

Overview

About

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.

Changes in 2.0.3
  • Fix documentation links (new CRAN policy)
  • Fixed dplyr deprecation warning for across

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
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'

CRAN check page ↗

Slowest check: 4.9 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 2.0.3
READMEYes · 630 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 2.0.3Citation fileNoWebsiteYes
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

40.6K
CRAN downloads in the past year
Rank #2,172 · ~111/day · ~3.4K/mo
Daily download trend is not available in this view yet.
3K30 days
8.1K90 days
40.6K1 year
Compare downloads with other packages →
Also on76 r2u2 autocran737 conda_forge

Repository

7Stars
3Forks
1Open issues
0Open PRs
1Releases
224Commits
2Commit identities
224 commits · Last activity 2025-08-19
Responsiveness
How these are sampled
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

2025-06-11 · 72026-07-07 · 7
PracticesBeta

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.

Continuous integration (1)
Travis CI (config file)
Governance and community (1)
Code of conduct
CRAN release process (1)
revdep/
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
23 external dependencies (excludes base and recommended)

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.

Depends (3)
R >= 4.1.0Gmiscforestplot
LinkingTo (0)
none
Suggests (9)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (2)
Author, Maintainer since 1.2 (2016)
Author
Author of original plotHR
Releases (14)

Pick two releases to compare their code metrics.

Show 10 earlier eventsHide 10 earlier events
  • 1.3.1
    record
    2019-09-21 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.3
    record
    2019-01-07 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.2.2
    record
    2018-04-21 · diff ↗
  • 1.2.1
    record
    2018-03-20 · diff ↗ ·
    removed 2 exports
    cbind.printCrudeAndAdjusted, rbind.printCrudeAndAdjusted
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 1.2
    record
    2016-03-28
  • R
    R 3.2.0 released · 2015-04-16

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")
Gordon, M., & Seifert, R. (2025). Greg: Regression Helper Functions (Version 2.0.3) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for Greg version 2.0.3 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

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