This function extracts point-wise log-likelihood values and then calculates LOO statistics.
Arguments
- data
A
listcontaining the data that was passed toMakeADFun. Must include switches for different data components (cpue_switch, aerial_switch, etc.).- object
A
listspecifying the AD object created usingMakeADFun. Used to extract posterior estimates.- posterior
An
snutsfitobject created using thesample_snutsfunction. Contains posterior samples from MCMC chains.
