calculate_waic function

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 function. Has the sole argument component wise likelihood at thetahat samples. v must be a matrix Calculate the WAIC criteria values

calculate_waic(v)

Arguments

  • v: must be a N (MCMC) by n (data) sample size matrix of the log-likelihood evaluations

Returns

a list containing four values p_waic, p_waic alt, waic and waic_alt

  • Maintainer: Sujit K. Sahu
  • License: GPL-2
  • Last published: 2025-03-31