Shows assurance as a function of decision threshold p* and one effect grid column, optionally faceted.
plot_decision_threshold_contour(
power_results,
metric = c("direction", "threshold", "rope"),
p_star_grid = seq(0.5, 0.99, by = 0.01),
effect_var = NULL,
facet_by = NULL,
effect_value = NULL,
effect_weights = NULL,
title = NULL,
subtitle = NULL
)ggplot2 object.
brms_inla_power list (or two-stage, etc.)
Which metric: "direction", "threshold", "rope"
Numeric vector of decision thresholds (default: 0.5 to 0.99 by 0.01)
Name of effect grid column for y-axis (default: first detected grid column)
Optional effect grid column(s) to facet by
Optional value(s) to filter for effect_var, or named list for multi-filter
Optional weights for aggregation (named by effect_var values)
Optional plot labels.