Package: bama 1.3.1

Mike Kleinsasser

bama: High Dimensional Bayesian Mediation Analysis

Perform mediation analysis in the presence of high-dimensional mediators based on the potential outcome framework. Bayesian Mediation Analysis (BAMA), developed by Song et al (2019) <doi:10.1111/biom.13189> and Song et al (2020) <arxiv:2009.11409>, relies on two Bayesian sparse linear mixed models to simultaneously analyze a relatively large number of mediators for a continuous exposure and outcome assuming a small number of mediators are truly active. This sparsity assumption also allows the extension of univariate mediator analysis by casting the identification of active mediators as a variable selection problem and applying Bayesian methods with continuous shrinkage priors on the effects.

Authors:Alexander Rix [aut], Mike Kleinsasser [aut, cre], Yanyi Song [aut]

bama_1.3.1.tar.gz

bama_1.3.1.tgz(r-4.6-x86_64)bama_1.3.1.tgz(r-4.6-arm64)bama_1.3.1.tgz(r-4.5-x86_64)bama_1.3.1.tgz(r-4.5-arm64)
bama_1.3.1.tar.gz(r-4.7-arm64)bama_1.3.1.tar.gz(r-4.7-x86_64)bama_1.3.1.tar.gz(r-4.6-arm64)bama_1.3.1.tar.gz(r-4.6-x86_64)
bama_1.3.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
bama/json (API)

# Install 'bama' in R:
install.packages('bama', repos = c('https://umich-cphds.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/umich-cphds/bama/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cpp

4.35 score 45 scripts 378 downloads 2 exports 4 dependencies

Last updated from:47d7b92ce7. Checks:10 OK, 3 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK154
linux-devel-x86_64OK159
source / vignettesOK211
linux-release-arm64OK159
linux-release-x86_64OK171
macos-release-arm64OK95
macos-release-x86_64OK365
macos-oldrel-arm64OK124
macos-oldrel-x86_64OK180
windows-develFAIL116
windows-releaseFAIL111
windows-oldrelFAIL115
wasm-releaseOK114

Exports:bamafdr.bama

Dependencies:BHRcppRcppArmadilloRcppDist

Bayesian Mediation Analysis in R

Rendered frombama.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2021-01-15
Started: 2019-09-18