The bma.bart object is from the bma.bart function. The summary function is to calculate the estimates, standard deviation and credible sets of the mediation effects and relative effects.
# S3 method for bma.bart
summary(object, ..., plot = TRUE, RE = TRUE,
quant = c(0.025, 0.25, 0.5, 0.75, 0.975),
digit = 4, method = 3, trim = 0.05)the mediation effect estimates using method X.
the relative effect estimates using method X.
a bma.bart object created by bma.bart.
other arguments passed to the print function.
default is TRUE, if ture, draw a barplot of the mediation effects with credible sets.
default is FALSE, if ture, show the inferences on relative mediation effects.
show the quantiles defined by quant of the posterior distributions of mediation effects.
the number of decimal digits to keep.
method=2 to show the results from the partial differences, method=3 to show the results from the G-computation, and method=4 for G-computation with non-parametric method (binary exposures only).
the percentage of trims to calcuate the trimed average mediation effects. By default, trim=0.5.
Bin Li and Qingzhao Yu
Show the posterior distribution of the estimated mediation effects.
Yu, Q., and Li, B. (2025) <doi:>. "Mediation Analysis with Bayesian Additive Regression Trees," submitted.
"bma.bart" for examples.