Evidence card for CTA multivariate covariate balance
Source:R/graphics_v3.R
plot_cta_balance_effects.RdRenders an evidence-interval card from a
cta_balance_effect_summary object. Each row of the card
corresponds to one analysis scale. The plot uses the same interval
encoding as plot_oda_balance_effects: thick black = bootstrap
CI, thin gray = chance CI, open circle = observed ESS/WESS.
Arguments
- x
A
"cta_balance_effect_summary"object fromcta_balance_effect_summary.- main
Optional character; plot title.
- subtitle
Optional character; plot subtitle.
- xlim
Optional numeric(2); x-axis limits.
- ...
Ignored; reserved for future use.
Details
When status = "no_tree" for all rows, a favorable-balance message
panel is returned instead of an interval plot.
This function does not fit any models.
Examples
# \donttest{
group <- c(0L, 0L, 0L, 0L, 1L, 1L, 1L, 1L)
X <- data.frame(v1 = c(1, 2, 3, 4, 5, 6, 7, 8),
v2 = c(0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L))
ces <- cta_balance_effect_summary(group, X, mindenom = 5L,
mc_iter = 200L, mc_seed = 42L,
nboot = 20L, chance_iter = 20L)
plot_cta_balance_effects(ces)
# }