Package: BayesianMediationA 1.0.1

Qingzhao Yu

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.

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

BayesianMediationA_1.0.1.tar.gz
BayesianMediationA_1.0.1.tar.gz(r-4.7-any)BayesianMediationA_1.0.1.tar.gz(r-4.6-any)
BayesianMediationA_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
BayesianMediationA/json (API)

# Install 'BayesianMediationA' in R:
install.packages('BayesianMediationA', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • jags– Just Another Gibbs Sampler for Bayesian MCMC
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

jagscpp

2.00 score 3 scripts 212 downloads 4 exports 78 dependencies

Last updated from:30a4a0cde8. Checks:2 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE158
source / vignettesOK234
linux-release-x86_64NOTE156
wasm-releaseOK123

Exports:bma.bx.cydata_orgprint.summary.bmasummary.bma.bx.cy

Dependencies:abindbackportsbitopsbootbroomcarcarDatacaToolsclicodacolorspacecowplotcpp11DerivdoBydplyrfarverforecastFormulafracdiffgenericsggplot2gluegplotsgtablegtoolsisobandKernSmoothlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR2jagsR2WinBUGSR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrjagsrlangS7scalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo

Examples for Bayesian Mediation Analysis

Rendered fromBayesianMediationAvignette.Rmdusingknitr::rmarkdownon Jun 13 2026.

Last update: 2022-09-24
Started: 2022-09-24