Skip to content

risks

0.4.3Package record

Estimate Risk Ratios and Risk Differences using Regression

2packages depend
7.7Kdownloads / year
89.0%test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 5.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.4.3
README· In the repository, left out of the releaseVignettesYes · 3 · dynamicNEWS· In the repository, left out of the releaseCitation fileNoWebsiteYes · pkgdown
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

7.7K
CRAN downloads in the past year
Rank #6,313 · ~21/day · ~646/mo
Daily download trend is not available in this view yet.
43230 days
1.3K90 days
7.7K1 year
Compare downloads with other packages →
Also on90 r2u3 autocran

Repository

8Stars
1Forks
5Open issues
1Open PRs
1Releases
205Commits
5Commit identities
binomialbiostatisticsepidemiologyregression-models
License file reads as GPL-3.0 · 205 commits · Last activity 2025-06-01
Responsiveness
How these are sampled
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

2026-07-14 · 42026-09-19 · 5
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-06-01 · The repository has a site deploy workflow

pkgdown site last built 2025-06-01

Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (2)
Author, Maintainer since 0.4.2 (2023), Copyright holder
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.3Latest
    record
    2025-05-30 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.4.2
    record
    2023-06-13
  • R
    R 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")
Stopsack, K., & Gerke, T. (2025). risks: Estimate Risk Ratios and Risk Differences using Regression (Version 0.4.3) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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