R Function for Additive Interaction Measures
Open accessThe DOI matches its Crossref record; 4 of the 4 references it cites were found in a registry or an index.
Abstract
To the Editor: Interaction analyses are commonplace in the epidemiology literature. Predominantly, investigators assess for interaction on the multiplicative scale when the outcome of interest is binary.1 For example, the standard exponentiated logistic regression coefficient corresponding to the product of two exposures represents the multiplicative ratio by which the joint effect (on the relative risk or odds ratio scale) of both exposures exceeds their individual contributions. Yet multiplicative measures alone are insufficient to fully assess the public health relevance of exposure interactions. For example, they can mislead strategies to target interventions to subgroups, thus reducing net benefit in the population.2 To overcome these limitations, several measures of interaction on the additive scale have been proposed,3,4 and editorial policy for the journal Epidemiology advocates their reporting as common practice. Additive measures assess the difference, rather than the ratio, by which the joint effect exceeds the individual contributions by the two exposures; common examples for a binary outcome and binary exposures appear in the Table (rows 1–3).Table: Additive and Mechanistic Interactions Implemented in R FunctionSuch measures accurately identify subgroups to which interventions should be targeted2 and, furthermore, can be used to assess for “mechanistic interactions” based on the sufficient cause framework.5 Examples of mechanistic interactions include sufficient cause synergism and compositional epistasis (Table, rows 4–5). Under the assumption that there is no unmeasured confounding of either exposure–outcome relationship, a true relative excess risk due to interaction surpassing specific thresholds is sufficient to guarantee the existence of synergism and compositional epistasis. These thresholds on the relative excess risk due to interaction can be relaxed if one or both of the exposures can be assumed to have monotonic effects; that is, if the direction of the exposure’s causal effect would be the same direction for all individuals in the population.5 Existing software for additive interaction analyses in SAS and STATA6 allows the user to compute these measures, including the proportion of the effects attributable to interaction,5,6 along with confidence intervals. The present software provides a similar implementation in R with more options and flexibility than other R implementations, and it does not require recoding of exposures. It also more directly allows for the assessment of mechanistic interaction. The user-friendly R function additive_interactions addresses all these topics. The code is publicly available (https://osf.io/7ccpp/), along with documentation and usage examples. We briefly describe the functionality here. The user passes a standard model object from a logistic regression (fit via R’s glm) of the outcome on both binary exposures and their interaction. The linear predictor can include confounders of arbitrary specification. Using fitted coefficients and their estimated variance–covariance matrix, the function computes estimates of the measures listed in the Table along with confidence intervals and P values based on the delta method.5 To test for mechanistic interactions, additive_interactions allows the user specify whether zero, one, or two of the exposures are assumed to have monotonic effects. Appropriate hypothesis tests are then conducted for both sufficient–cause interaction and compositional epistasis. All output is returned in the form of a dataframe. In the online documentation, we demonstrate application of the function to simulated data. Additive interaction measures are typically conceptualized for settings in which both exposures are positively associated with the outcome (RR10 > 1 and RR01 > 1, denoting the joint relative risk , where ). Our function additive_interactions handles other cases by giving the option of automatically recoding of one or both exposures against new reference levels defined by the joint category with the lowest overall risk.7 We hope that the availability of a general, user-friendly R function may reduce a potential barrier to widespread reporting of additive interaction measures. Maya B. Mathur Department of Biostatistics Harvard University Boston, MA Quantitative Sciences Unit Stanford University Stanford, CA [email protected] Tyler J. VanderWeele Departments of Biostatistics and Epidemiology Harvard University Boston, MA
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Recommendations for presenting analyses of effect modification and interaction
Knol, M. J., & VanderWeele, T. J. (2012) · International Journal of Epidemiology · doi:10.1093/ije/dyr218 · Cited by 1,494
Self-citationROTHMAN, K. J., GREENLAND, S., & WALKER, A. M. (1980) · American Journal of Epidemiology · doi:10.1093/oxfordjournals.aje.a113015 · Cited by 859
When One Depends on the Other: Reporting of Interaction in Case-Control and Cohort Studies
Knol, M. J., Egger, M., Scott, P., Geerlings, M. I., & Vandenbroucke, J. P. (2009) · Epidemiology · doi:10.1097/ede.0b013e31818f6651 · Cited by 113
Kaufman, J. S. (2009) · Epidemiology · doi:10.1097/ede.0b013e318197c0f5 · Cited by 27
Cited by
Hardwicke, T. E., Mathur, M. B., MacDonald, K., Nilsonne, G., Banks, G. C., Kidwell, M. C., Hofelich Mohr, A., Clayton, E., Yoon, E. J., Henry Tessler, M., et al. (2018) · Royal Society Open Science · doi:10.1098/rsos.180448 · Cited by 336
Self-citationWhere identities converge: The importance of intersectionality in eating disorders research
Burke, N. L., Schaefer, L. M., Hazzard, V. M., & Rodgers, R. F. (2020) · International Journal of Eating Disorders · doi:10.1002/eat.23371 · Cited by 151
“Assessing dichotomous outcomes on an additive scale is more challenging logistically, but software programs and code are available to facilitate such analyses (Mathur & VanderWeele, 2018; VanderWeele & Knol, 2014; VanderWeele & Tchetgen, 2014), and proved fruitful (e.g., Beccia et al., 2019).”
MethodUnderstanding of interaction (subgroup) analysis in clinical trials
Brankovic, M., Kardys, I., Steyerberg, E. W., Lemeshow, S., Markovic, M., Rizopoulos, D., & Boersma, E. (2019) · European Journal of Clinical Investigation · doi:10.1111/eci.13145 · Cited by 130
Metadata
- Authors
- Mathur, M. B., & VanderWeele, T. J.
- Venue
- Epidemiology
- Published
- 2018-01
- Volume
- 29
- Issue
- 1
- Pages
- e5-e6
- ISSN
- 1044-3983 (ISSN-L)
- OpenAlex
- W2753325383
- Cited by
- 44
- References
- 4
- FWCI
- 1.88
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: R Function for Additive Interaction Measures. https://app.cochat.ai/papers/10.1097/ede.0000000000000752
- The paper
- Mathur, M. B., & VanderWeele, T. J. (2018). R Function for Additive Interaction Measures. Epidemiology. https://doi.org/10.1097/ede.0000000000000752
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.