riskdiff: Robust Risk Difference Estimation with Multiple Link Functions (original) (raw)
Calculates risk differences (or prevalence differences for cross-sectional data) using generalized linear models with automatic link function selection. Provides robust model fitting with fallback methods, support for stratification and adjustment variables, and publication-ready output formatting. Handles model convergence issues gracefully and provides confidence intervals using multiple approaches. Methods are based on approaches described in Mark W. Donoghoe and Ian C. Marschner (2018) "logbin: An R Package for Relative Risk Regression Using the Log-Binomial Model" <doi:10.18637/jss.v086.i09> for robust GLM fitting, and standard epidemiological methods for risk difference estimation as described in Kenneth J. Rothman, Sander Greenland and Timothy L. Lash (2008, ISBN:9780781755641) "Modern Epidemiology".
Version: | 0.1.0 |
---|---|
Depends: | R (≥ 3.5.0) |
Imports: | dplyr (≥ 1.0.0), purrr, tibble, rlang, scales, stringr, stats |
Suggests: | kableExtra, testthat (≥ 3.0.0), knitr, rmarkdown, ggplot2, covr |
Published: | 2025-06-03 |
DOI: | 10.32614/CRAN.package.riskdiff |
Author: | John D. Murphy |
Maintainer: | John D. Murphy |
BugReports: | https://github.com/jackmurphy2351/riskdiff/issues |
License: | MIT + file |
URL: | https://github.com/jackmurphy2351/riskdiff |
NeedsCompilation: | no |
Materials: | README NEWS |
CRAN checks: | riskdiff results |
Documentation:
Downloads:
Linking:
Please use the canonical formhttps://CRAN.R-project.org/package=riskdiffto link to this page.