Calculates PSIS-LOO CV as in Vehtari et al. 2017a/b, using the loo package.
1 | calculate_loo(chain, parTab, dat, f, N = 1000, nindiv = 3)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.