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.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("BayesianMediationA")

1.0.1 by Qingzhao Yu, 4 years ago


https://cran.r-project.org/package=BayesianMediationA, https://publichealth.lsuhsc.edu/Faculty_pages/qyu/index.html


Browse source code at https://github.com/cran/BayesianMediationA


Authors: Qingzhao Yu [aut, cre, cph] , Bin Li [aut]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports splines, methods

Depends on survival, R2jags, car, gplots, lattice

Suggests knitr, rmarkdown


See at CRAN