Learn R Programming

bmstdr (version 0.8.2)

calculate_waic: Calculate WAIC function. Has the sole argument component wise likelihood at thetahat samples. v must be a matrix Calculate the WAIC criteria values

Description

Calculate WAIC function. Has the sole argument component wise likelihood at thetahat samples. v must be a matrix Calculate the WAIC criteria values

Usage

calculate_waic(v)

Value

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

Arguments

v

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