Learn R Programming

powerbrmsINLA (version 1.1.1)

plot_bf_assurance_curve_smooth: Bayes-factor assurance curve with Wilson CIs (multi-effect grid friendly)

Description

Plots the proportion of simulations in which BF10 meets or exceeds a threshold, grouped by sample size and any effect grid variables.

Usage

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

Value

A ggplot object.

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).