This function computes diagnostics to assess the quality of a fitted model.
When the fitting algorithm used is "sampling"
(HMC) then the output of
epidist_diagnostics
is a data.frame
containing:
time
: the total time taken to fit all chainssamples
: the total number of samples across all chainsmax_rhat
: the highest value of the Gelman-Rubin statisticdivergent_transitions
: the total number of divergent transitionsper_divergent_transitions
: the proportion of samples which had divergent transitionsmax_treedepth
: the highest value of the treedepth HMC parameterno_at_max_treedepth
: the number of samples which attained themax_treedepth
per_at_max_treedepth
: the proportion of samples which attained themax_treedepth
Details
When the fitting algorithm is not "sampling"
(see brms::brm()
for other
possible algorithms) then diagnostics are yet to be implemented.