Estimate Risk Ratios and Risk Differences using Regression
Overview
Risk ratios and risk differences are estimated using regression models that allow for binary, categorical, and continuous exposures and confounders. Implemented are marginal standardization after fitting logistic models (g-computation) with delta-method and bootstrap standard errors, Miettinen's case-duplication approach (Schouten et al. 1993, doi:10.1002/sim.4780121808), log-binomial (Poisson) models with empirical variance (Zou 2004, doi:10.1093/aje/kwh090), binomial models with starting values from Poisson models (Spiegelman and Hertzmark 2005, doi:10.1093/aje/kwi188), and others.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 15 (1 internal)includes a package overview page
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 67%
- Documented parameters
- 89%
- Return-value docs
- 100%
- Help pages citing references
- 13%
Downloads
Repository
- PRs merged (all time)
- 82%
- Median days to close, 50 most recently updated closed issues
- 37
- Median days to close, 50 most recently updated closed PRs
- 0
Issues over time
Commit identities over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/stopsack/risks on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-06-01 · The repository has a site deploy workflow
pkgdown site last built 2025-06-01
Show all practicesHide 1 practice
Dependencies
Installing risks adds 25 packages (14 with compiled code, 21 MB of source tarballs). Heaviest: stringi 11 MB, sandwich 1.4 MB, vctrs 1.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.4.3Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.4.22023-06-13
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-06-13
- Total releases
- 2 / 3 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 0.3 KB / 1 file
- Download size
- 4.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("risks")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-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.