powered by
This function used an approach similar to the presented by Benson & Friel (2021) to calculate the BIC. We select S a sample size of the posterior samples to speed up computation
DIC_cmp(fit, S = 100)
Vector of approximated DIC
An object from the mcmc_cmp_mh
Number of iterations used to calculate the DIC