risks: Estimate Risk Ratios and Risk Differences using Regression

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.

Package details

AuthorKonrad Stopsack [aut, cre, cph] (ORCID: <https://orcid.org/0000-0002-0722-1311>), Travis Gerke [aut] (ORCID: <https://orcid.org/0000-0002-9500-8907>)
MaintainerKonrad Stopsack <stopsack@post.harvard.edu>
LicenseGPL-3
Version0.4.3
URL https://stopsack.github.io/risks/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("risks")

Try the risks package in your browser

Any scripts or data that you put into this service are public.

risks documentation built on June 8, 2025, 10:12 a.m.