Litcius/Paper detail

A regression-with-residuals method for analyzing causal mediation: The rwrmed package

Ariel Linden, Chuck Huber, Geoffrey T. Wodtke

2021The Stata Journal Promoting communications on statistics and Stata15 citationsDOIOpen Access PDF

Abstract

In this article, we introduce the rwrmed package, which performs mediation analysis using the methods proposed by Wodtke and Zhou (2020, Epidemiology 31: 369–375). Specifically, rwrmed estimates interventional direct and indirect effects in the presence of treatment-induced confounding by fitting models for 1) the conditional mean of the mediator given the treatment and a set of baseline confounders and 2) the conditional mean of the outcome given the treatment, mediator, baseline confounders, and a set of treatment-induced confounders that have been residualized with respect to the observed past. Interventional direct and indirect effects are simple functions of the parameters in these models when they are correctly specified and when there are no unobserved variables that confound the treatment-outcome, treatment-mediator, or mediator-outcome relationships. When no treatment-induced confounders are specified, rwrmed produces natural direct and indirect effect estimates.

Topics & Concepts

ConfoundingMediationStatisticsOutcome (game theory)EconometricsSet (abstract data type)Marginal structural modelRegressionMeta-analysisRegression analysisMediatorPsychologyMathematicsMedicineComputer scienceInternal medicineMathematical economicsLawProgramming languagePolitical scienceAdvanced Causal Inference TechniquesStatistical Methods and Bayesian InferencePsychometric Methodologies and Testing