概要
This skill equips Claude with the expertise to conduct complex causal mediation analysis within the R ecosystem, supporting everything from traditional Baron-Kenny steps to modern natural effect models and comprehensive frameworks like CMAverse. It provides implementation patterns for handling binary outcomes, survival data, and multiple mediators, while emphasizing rigorous causal inference through Directed Acyclic Graph (DAG) analysis and sensitivity testing for unmeasured confounding. It is particularly useful for researchers and data scientists needing to understand the underlying mechanisms of treatment effects in clinical, social, or behavioral studies.