Learn R Programming

powerbrmsINLA (version 1.1.1)

plot_bf_assurance_curve: Bayes-factor assurance curve (user-facing wrapper)

Description

This is the main function users should call to visualise Bayes-factor "power" / assurance. 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)

Value

A ggplot object.

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