Skip to content

BayesianMediationA

Bayesian Mediation Analysis

v1.0.1 · Sep 24, 2022 · GPL (>= 2)

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.

Downloads

239

Last 30 days

13495th

504

Last 90 days

504

Last year

Trend: -9.8% (30d vs prior 30d)

CRAN Check Status

14 NOTE
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-macos-arm64 NOTE
r-devel-windows-x86_64 NOTE
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 NOTE
r-release-linux-x86_64 NOTE
r-release-macos-arm64 NOTE
r-release-macos-x86_64 NOTE
r-release-windows-x86_64 NOTE
Check details (14 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-linux-x86_64-debian-gcc

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-linux-x86_64-fedora-clang

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-linux-x86_64-fedora-gcc

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-macos-arm64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-windows-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-oldrel-macos-arm64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-oldrel-macos-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-oldrel-windows-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-patched-linux-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-release-linux-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-release-macos-arm64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-release-macos-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-release-windows-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^

Check History

NOTE 0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-devel-linux-x86_64-debian-clang

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-linux-x86_64-debian-gcc

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-linux-x86_64-fedora-clang

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-linux-x86_64-fedora-gcc

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-macos-arm64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-devel-windows-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-patched-linux-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-release-linux-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-release-macos-arm64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-release-macos-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-release-windows-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-oldrel-macos-arm64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-oldrel-macos-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^
NOTE r-oldrel-windows-x86_64

Rd files

checkRd: (-1) bma.bx.cy.Rd:69: Lost braces
    69 | the initial values for parameters in models. For example, inits<-function(){list(alpha=0,beta=0,c=0,var1=0.5,r=1,lamda=0.01)}.
       |                                                                            ^

Dependency Network

Dependencies Reverse dependencies survival R2jags car gplots lattice BayesianMediationA

Version History

new 1.0.1 Mar 9, 2026