Learn R Programming

⚠️There's a newer version (2.8.0) of this package.Take me there.

loo (version 1.0.0)

Efficient Leave-One-Out Cross-Validation and WAIC for Bayesian Models

Description

Efficient approximate leave-one-out cross-validation (LOO) using Pareto smoothed importance sampling (PSIS), a new procedure for regularizing importance weights. As a byproduct of the calculations, we also obtain approximate standard errors for estimated predictive errors and for the comparison of predictive errors between models. We also compute the widely applicable information criterion (WAIC).

Copy Link

Version

Install

install.packages('loo')

Monthly Downloads

54,425

Version

1.0.0

License

GPL (>= 3)

Maintainer

Jonah Gabry

Last Published

December 16th, 2016

Functions in loo (1.0.0)

compare

Model comparison
psislw

Pareto smoothed importance sampling (PSIS)
loo

Leave-one-out cross-validation (LOO)
gpdfit

Generalized Pareto distribution
nlist

Named lists
pareto-k-diagnostic

Diagnostics for Pareto Smoothed Importance Sampling
extract_log_lik

Extract log-likelihood from a Stan model
print.loo

Print method for 'loo' objects