Function for calculating DIC and Pb (Bayesian measures of model complexity and fit by Spiegelhalter et al. 2002)
computeDIC_ASV(y, beta, post_sigma2, post_loglike)
a list containing DIC and p_d. Two options for estimating both DIC and p_d, which are both included.
the T x 1
vector of time series observations.
the known mean of the process. 0 by default.
posterior samples of the variance, i.e. exp(h)
log likelihood based on the posterior sample.