PLoS ONE (Jan 2022)

Introducing riskCommunicator: An R package to obtain interpretable effect estimates for public health.

  • Jessica A Grembi,
  • Elizabeth T Rogawski McQuade

DOI
https://doi.org/10.1371/journal.pone.0265368
Journal volume & issue
Vol. 17, no. 7
p. e0265368

Abstract

Read online

Common statistical modeling methods do not necessarily produce the most relevant or interpretable effect estimates to communicate risk. Overreliance on the odds ratio and relative effect measures limit the potential impact of epidemiologic and public health research. We created a straightforward R package, called riskCommunicator, to facilitate the presentation of a variety of effect measures, including risk differences and ratios, number needed to treat, incidence rate differences and ratios, and mean differences. The riskCommunicator package uses g-computation with parametric regression models and bootstrapping for confidence intervals to estimate effect measures in time-fixed data. We demonstrate the utility of the package using data from the Framingham Heart Study to estimate the effect of prevalent diabetes on the 24-year risk of cardiovascular disease or death. The package promotes the communication of public-health relevant effects and is accessible to a broad range of epidemiologists and health researchers with little to no expertise in causal inference methods or advanced coding.