plot_bf_assurance_curve_smooth: Conditional Bayesian power curve for the Bayes factor...

View source: R/plotting-bf.R

plot_bf_assurance_curve_smoothR Documentation

Conditional Bayesian power curve for the Bayes factor criterion with Wilson CIs (multi-effect grid friendly)

Description

Plots the conditional power — the proportion of simulations in which BF10 meets or exceeds a threshold at each fixed effect size — grouped by sample size and any effect grid variables.

Usage

plot_bf_assurance_curve_smooth(x, cutoff = 10, effect_filter = NULL)

Arguments

x

Engine result (list with $results) or a data.frame with at least columns n, bf10 and any effect columns (e.g., treatment).

cutoff

Numeric Bayes factor threshold for a "hit" (default 10).

effect_filter

Optional named list to filter effects, e.g. list(treatment = 0.6).

Value

A ggplot object.


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