Computes approximate leave-one-out cross-validation using PSIS-LOO.
Requires the loo package.
Arguments
- fit
A CmdStanMCMC object with log_lik generated quantities.
- ...
Additional arguments passed to
loo.
See also
vignette("model_diagnostics") for comprehensive model comparison workflow.
Statistical Methods: Model Assessment for LOO-CV theory and interpretation.
Examples
if (FALSE) { # \dontrun{
loo_growth <- compute_loo(growth_fit)
print(loo_growth)
} # }
