Provides the Bayesian nonparametric inference for the causal effects of mediation. The function bnpmediation() gives the posterior means and credible intervals of the effects of mediation on the data. Full details: Kim, C., Daniels, M. J., Marcus, B. H. and Roy, J. A. (2017) <doi:10.1111/biom.12575>.