Skip to contents

Computes approximate leave-one-out cross-validation using PSIS-LOO. Requires the loo package.

Usage

compute_loo(fit, ...)

Arguments

fit

A CmdStanMCMC object with log_lik generated quantities.

...

Additional arguments passed to loo.

Value

A loo object.

See also

vignette("model_diagnostics") for comprehensive model comparison workflow.

Statistical Methods: Model Assessment for LOO-CV theory and interpretation.

compare_loo, create_loo_table, ppc_summary

Examples

if (FALSE) { # \dontrun{
loo_growth <- compute_loo(growth_fit)
print(loo_growth)
} # }