Computes approximate leave-one-out cross-validation (LOO-CV) using Pareto
smoothed importance sampling (PSIS-LOO) via the {loo} package.
Arguments
- x
an
imugap_fitobject returned bysampling().- posterior_size
optional integer scalar; how many draws to use from the end of each chain? (default:
NULL, which uses all draws).- ...
additional arguments passed to
loo::loo()(e.g.cores,r_eff). Whenr_effis omitted and the fit contains multiple chains, relative effective sample size is automatically calculated vialoo::relative_eff().
Value
for loo.imugap_fit(): an object of class loo, as returned by loo::loo().
