Plots the assurance (proportion of simulation runs meeting a posterior probability decision rule) versus an effect grid variable, for a given metric ("direction", "threshold", or "rope") at a fixed decision probability threshold p_star.
plot_decision_assurance_curve(
power_results,
metric = c("direction", "threshold", "rope"),
p_star = 0.95,
x_effect = NULL,
facet_by = NULL,
effect_filters = NULL,
effect_weights = NULL,
title = NULL,
subtitle = NULL
)A ggplot object.
A list returned by brms_inla_power*.
Decision metric: "direction", "threshold", or "rope".
Numeric decision threshold in (0,1).
Name of effect grid column for x-axis (default: first grid column).
Optional effect grid column(s) to facet by.
Optional named list for filtering rows, e.g. list(treatment=0).
Optional named numeric vector of weights for selected x_effect values.
Optional plot labels.