mediation: R Package for Causal Mediation Analysis
In this paper, we describe the R package mediation for conducting causal mediation analysis in applied empirical research.In many scientific disciplines, the goal of researchers is not only estimating causal effects of a treatment but also understanding the process in which the hydrangea red sensation treatment causally affects the outcome.Causal m