Causal Mediation Analysis in R
Performs advanced causal mediation analysis to decompose total effects into direct and indirect effects using industry-standard R packages.
This skill provides specialized guidance for conducting causal mediation analysis in R, helping researchers and data scientists quantify the mechanisms through which an exposure affects an outcome. It covers a comprehensive range of methodologies—from traditional Baron-Kenny steps to modern natural effect models and regression-based approaches—while offering robust support for complex data types including binary mediators, survival outcomes, and multiple sequential mediators. By incorporating sensitivity analysis and causal diagrams, it ensures that mediation results are both statistically sound and theoretically grounded.