Generates a comprehensive MCMC diagnostics report including trace plots, density plots, convergence assessment, and summary statistics.
Usage
create_mcmc_diagnostics_report(
fit,
parameters = NULL,
rhat_threshold = 1.01,
ess_threshold = 100,
title_prefix = "MCMC Diagnostics"
)Arguments
- fit
A brmsfit object from brms package
- parameters
Character vector of specific parameters to analyze. If NULL, selects parameters starting with "b_", or the first 5 parameters if no "b_" parameters exist.
- rhat_threshold
Numeric. R-hat threshold for convergence
- ess_threshold
Numeric. Minimum ESS threshold
- title_prefix
Character string for report section titles
