calculate_loo: Calculate LOOIC using loo package

Description Usage Arguments

View source: R/analyses.R

Description

Calculates PSIS-LOO CV as in Vehtari et al. 2017a/b, using the loo package.

Usage

1
calculate_loo(chain, parTab, dat, f, N = 1000, nindiv = 3)

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

nindiv

the number of individuals in each group/strain combination


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