Calculate WAIC function. Has the sole argument component wise likelihood at thetahat samples. v must be a matrix Calculate the WAIC criteria values
calculate_waic(v)
v
: must be a N (MCMC) by n (data) sample size matrix of the log-likelihood evaluationsa list containing four values p_waic, p_waic alt, waic and waic_alt