Compute MCMC convergence diagnostics for multiple chains
Source:R/ame_parallel.R
compute_mcmc_diagnostics.RdComputes Gelman-Rubin R-hat and effective sample size (ESS) across two or
more independently-seeded chains, for both the regression coefficients
(BETA) and the variance components (VC). ESS is computed on
the pooled draws, so genuinely non-converged chains report a low ESS rather
than an inflated one.