BayesianMediationA: Bayesian Mediation Analysis

We perform general mediation analysis in the Bayesian setting using the methods described in Yu and Li (2022, ISBN:9780367365479). With the package, the mediation analysis can be performed on different types of outcomes (e.g., continuous, binary, categorical, or time-to-event), with default or user-defined priors and predictive models. The Bayesian estimates and credible sets of mediation effects are reported as analytic results.

Version: 1.0.1
Depends: R (≥ 2.14.1), survival, R2jags, car, gplots, lattice
Imports: splines, methods
Suggests: knitr, rmarkdown
Published: 2022-09-24
DOI: 10.32614/CRAN.package.BayesianMediationA
Author: Qingzhao Yu [aut, cre, cph], Bin Li [aut]
Maintainer: Qingzhao Yu <qyu at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
CRAN checks: BayesianMediationA results


Reference manual: BayesianMediationA.pdf
Vignettes: Examples for Bayesian Mediation Analysis


Package source: BayesianMediationA_1.0.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): BayesianMediationA_1.0.1.tgz, r-oldrel (arm64): BayesianMediationA_1.0.1.tgz, r-release (x86_64): BayesianMediationA_1.0.1.tgz, r-oldrel (x86_64): BayesianMediationA_1.0.1.tgz
Old sources: BayesianMediationA archive


Please use the canonical form to link to this page.