Learn R Programming

powerbrmsINLA (version 1.1.1)

plot_decision_threshold_contour: Plot Decision Threshold Contour (Multi-Effect Grid Friendly)

Description

Shows assurance as a function of decision threshold p* and one effect grid column, optionally faceted.

Usage

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
)

Value

ggplot2 object.

Arguments

power_results

brms_inla_power list (or two-stage, etc.)

metric

Which metric: "direction", "threshold", "rope"

p_star_grid

Numeric vector of decision thresholds (default: 0.5 to 0.99 by 0.01)

effect_var

Name of effect grid column for y-axis (default: first detected grid column)

facet_by

Optional effect grid column(s) to facet by

effect_value

Optional value(s) to filter for effect_var, or named list for multi-filter

effect_weights

Optional weights for aggregation (named by effect_var values)

title, subtitle

Optional plot labels.