Learn R Programming

BayesianMediationA (version 1.0.1)

Bayesian Mediation Analysis

Description

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.

Copy Link

Version

Install

install.packages('BayesianMediationA')

Monthly Downloads

263

Version

1.0.1

License

GPL (>= 2)

Maintainer

Qingzhao Yu

Last Published

September 24th, 2022

Functions in BayesianMediationA (1.0.1)

data_org

Data Organization
print.summary.bma

Print the results from the summary function.
BayesianMediationA-package

Bayesian Mediation Analysis Package
bma.bx.cy

Bayesian Mediation Analysis
summary.bma.bx.cy

Summary function for the bma.bx.cy object
weight_behavior

Weight_Behavior Data Set