plot_bf_assurance_curve: Bayes-factor conditional power curve (user-facing wrapper)

View source: R/plotting-bf.R

plot_bf_assurance_curveR Documentation

Bayes-factor conditional power curve (user-facing wrapper)

Description

This is the main function users should call to visualise conditional Bayesian power for the Bayes factor criterion. It is a thin wrapper around plot_bf_assurance_curve_smooth(), so all existing behaviour is preserved.

Usage

plot_bf_assurance_curve(power_results, bf_threshold = 10, effect_filter = NULL)

Arguments

power_results

Output from a brms_inla_power* function (or a data.frame with columns n, bf10 and any effect columns).

bf_threshold

Numeric Bayes factor cutoff (default 10).

effect_filter

Optional named list to filter effect-grid columns, e.g. list(treatment = 0.3).

Value

A ggplot object.


powerbrmsINLA documentation built on July 2, 2026, 5:07 p.m.