summary.bma.bart {bmabart} | R Documentation |
Summary of a bma.bart object
Description
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.
Usage
## S3 method for class '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)
Arguments
object |
a bma.bart object created by bma.bart. |
... |
other arguments passed to the print function. |
plot |
default is TRUE, if ture, draw a barplot of the mediation effects with credible sets. |
RE |
default is FALSE, if ture, show the inferences on relative mediation effects. |
quant |
show the quantiles defined by quant of the posterior distributions of mediation effects. |
digit |
the number of decimal digits to keep. |
method |
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). |
trim |
the percentage of trims to calcuate the trimed average mediation effects. By default, trim=0.5. |
Details
Show the posterior distribution of the estimated mediation effects.
Value
resultX |
the mediation effect estimates using method X. |
resultX.re |
the relative effect estimates using method X. |
Author(s)
Bin Li and Qingzhao Yu
References
Yu, Q., and Li, B. (2025) <doi:>. "Mediation Analysis with Bayesian Additive Regression Trees," submitted.
See Also
"bma.bart"
for examples.