R package ‘mediation’ for conducting causal mediation analysis.
Paper supporting the R package “mediation” that includes an explanation of the theory and practice for using this methodology through this package in R.