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)
a list containing four values p_waic, p_waic alt, waic and waic_alt
must be a N (MCMC) by n (data) sample size matrix of the log-likelihood evaluations