Builds a bar plot of median R-hat by family, using the transformation
median_Rhat - 1 on the y-axis. With this transformation, the usual
convergence threshold rhat_threshold = 1.05 appears at 0.05
on the vertical axis.
Arguments
- samples
An object containing MCMC draws (for example an
mcmc.list,mcmc,data.frame, ormatrix). It must be compatible withassess_performance()viaas_mcmc_list().- runtime_s
Numeric scalar; total runtime in seconds for the MCMC run. It is passed to
assess_performance()for consistency.- sampler_params
Optional character vector of parameter names to keep. If provided, only those parameters are used to compute family-level median R-hat. If
NULL(default), all parameters inassess_performance(samples, runtime_s)$per_paramare used.- rhat_threshold
Numeric convergence threshold for R-hat (default
1.05). A dashed horizontal line is drawn atrhat_threshold - 1on the transformed scale.