Skip to contents

Renders 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.

Usage

plot_cta_balance_effects(x, main = NULL, subtitle = NULL, xlim = NULL, ...)

Arguments

x

A "cta_balance_effect_summary" object from cta_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.

Value

A ggplot object.

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)

# }