Package: BayesianMediationA 1.0.1

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.zip(r-4.7)BayesianMediationA_1.0.1.zip(r-4.6)BayesianMediationA_1.0.1.zip(r-4.5)
BayesianMediationA_1.0.1.tgz(r-4.6-any)BayesianMediationA_1.0.1.tgz(r-4.5-any)
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://qingzhaoyu.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • jags– Just Another Gibbs Sampler for Bayesian MCMC - binary JAGS is Just Another Gibbs Sampler. It is a program for analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC) simulation not wholly unlike BUGS. JAGS was written with three aims in mind: * To have an engine for the BUGS language that runs on Unix * To be extensible, allowing users to write their own functions, distributions and samplers. * To be a plaftorm for experimentation with ideas in Bayesian modelling This package contains the 'jags' binary as well as the associated shared library modules loaded by the binary.
  • 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 2 scripts 185 downloads 4 exports 78 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE195
source / vignettesOK248
linux-release-x86_64NOTE146
macos-release-arm64NOTE190
macos-oldrel-arm64NOTE110
windows-develNOTE183
windows-releaseNOTE115
windows-oldrelNOTE122
wasm-releaseOK122

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

Dependencies:abindbackportsbitopsbootbroomcarcarDatacaToolsclicodacolorspacecowplotcpp11DerivdoBydplyrfarverforecastFormulafracdiffgenericsggplot2gluegplotsgtablegtoolsisobandKernSmoothlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR2jagsR2WinBUGSR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrjagsrlangS7scalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo

Examples for Bayesian Mediation Analysis

Rendered fromBayesianMediationAvignette.Rmdusingknitr::rmarkdownon Jun 02 2026.

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