calculate_waic: Calculate WAIC function. Has the sole argument component wise...

View source: R/utilities.R

calculate_waicR Documentation

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)

Arguments

v

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

Value

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


sujit-sahu/bmstdr documentation built on Jan. 30, 2024, 1:40 p.m.