Skip to contents

Plot HMC-only strategy comparisons (robust fast path)

Usage

plot_strategies_from_test_result_hmc_fast(
  res,
  out_dir = NULL,
  per = c("target", "family"),
  top_k = 40,
  top_by = c("CE", "AE", "Rhat"),
  show_rhat_label = TRUE,
  verbose = TRUE
)

Arguments

res

Result list containing res$diag_tbl (from compute_diag_from_mcmc_vect()).

out_dir

Output directory for plots; created if needed.

per

Aggregation level: "target" or "family".

top_k

Number of items to plot.

top_by

Ranking metric: "CE", "AE", or "Rhat".

show_rhat_label

If TRUE, prints Rhat text on bars (can be cluttered).

verbose

Print progress messages.

Value

Invisibly, list(plot=..., data=..., file=...)