View source: R/bal.table.mediation.R
bal.table.mediation | R Documentation |
Compute the balance table for mediation object.
bal.table.mediation(x, digits = 3, details = FALSE, plot = FALSE, ...)
x |
A |
digits |
Number of digits to round to. Dafault: 3 |
details |
logical. If |
plot |
logical. If |
... |
Additional arguments. |
res |
tables detailing covariate balance across exposure groups both before and after weighting |
print.bal.table.mediation
, wgtmed
data("tMdat") ## tMdat is small simulated data set included in twangMedRiation for ## demonstrating the functions. See ?tMdat for details fit.es.max <- wgtmed(M ~ w1 + w2 + w3, data = tMdat, a_treatment = "A", y_outcome = "Y", total_effect_wts = tMdat$te.wgt, method = "logistic" ) bal.table.mediation(fit.es.max)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.