calculate_WAIC: WAIC using the pwaic2 in Gelman 2013

Description Usage Arguments Value

View source: R/analyses.R

Description

Calculates WAIC using the second method described in Gelman 2013

Usage

1
calculate_WAIC(chain, parTab, dat, f, N)

Arguments

chain

the MCMC chain with each row corresponding to an iteration

parTab

the parameter table used for this chain

dat

the data frame of data used to solve the likelihood

f

pointer to the model function used in the MCMC procedure

N

number of samples to take from the MCMC chain

Value

list with WAIC for this model calculated from the MCMC chain, and pwaic which is a constituent of WAIC


jameshay218/antibodyKinetics documentation built on Nov. 8, 2019, 11 a.m.