Learn R Programming

powerbrmsINLA (version 1.1.1)

plot_bf_expected_evidence: Plot Expected Evidence (mean log10 BF10, Multi-Effect Grid Friendly)

Description

Plots the average log10 BF10 against any effect grid variable, grouped/faceted.

Usage

plot_bf_expected_evidence(
  power_results,
  x_effect = NULL,
  facet_by = NULL,
  n = NULL,
  agg_fun = mean,
  title = NULL,
  subtitle = NULL
)

Value

A ggplot object.

Arguments

power_results

Simulation results from a brms_inla_power* function with compute_bayes_factor = TRUE.

x_effect

Name of effect grid column for x-axis (default: first grid column).

facet_by

Optional grid column(s) to facet by (default: NULL).

n

Optional sample size to filter to (NULL means plot all; else one curve per grid/facet).

agg_fun

Aggregation function if >1 entries per cell (default: mean).

title, subtitle

Optional plot labels.