Tingley, Dustin, et al. “Mediation: R Package for Causal Mediation Analysis”. Journal of Statistical Software, vol. 59, no. 5, Sept. 2014, pp. 1-38, doi:10.18637/jss.v059.i05.