Compares assurance results from multiple scenarios by showing the range ("ribbon") of values across scenarios for each sample size and effect grid variable.
plot_assurance_with_robustness(
power_results_list,
metric = c("precision", "direction", "threshold", "bf"),
x_effect = NULL,
facet_by = NULL,
precision_target = NULL,
p_star = 0.95,
bf_threshold = 10,
effect_filters = NULL,
effect_weights = NULL,
show_individual_scenarios = FALSE,
title = NULL,
subtitle = NULL
)A ggplot object.
Named list of results objects from brms_inla_power or sequential/two-stage variants.
Which assurance metric to compute: "precision", "direction", "threshold", or "bf".
Name of effect grid column for x-axis (default: first detected grid column).
Optional effect grid column(s) to facet by.
CI width target if metric="precision".
Posterior probability threshold for "direction"/"threshold".
BF10 threshold for "bf".
Optional named list for filtering rows (e.g. list(treatment=0)).
Optional named numeric vector for averaging over grid values.
Logical; if TRUE, overlay each scenario's curve.
Optional plot labels.