Crandore Hub

loo

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

Efficient approximate leave-one-out cross-validation (LOO) for Bayesian models fit using Markov chain Monte Carlo, as described in Vehtari, Gelman, and Gabry (2017) <doi:10.1007/s11222-016-9696-4>. The approximation uses 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. The package also provides methods for using stacking and other model weighting techniques to average Bayesian predictive distributions.

Versions across snapshots

VersionRepositoryFileSize
2.9.0 rolling linux/jammy R-4.5 loo_2.9.0.tar.gz 1.7 MiB
2.9.0 rolling linux/noble R-4.5 loo_2.9.0.tar.gz 1.7 MiB
2.9.0 rolling source/ R- loo_2.9.0.tar.gz 2.7 MiB
2.9.0 latest linux/jammy R-4.5 loo_2.9.0.tar.gz 1.7 MiB
2.9.0 latest linux/noble R-4.5 loo_2.9.0.tar.gz 1.7 MiB
2.9.0 latest source/ R- loo_2.9.0.tar.gz 2.7 MiB
2.9.0 2026-04-26 source/ R- loo_2.9.0.tar.gz 2.7 MiB
2.9.0 2026-04-23 source/ R- loo_2.9.0.tar.gz 2.7 MiB
2.9.0 2026-04-09 windows/windows R-4.5 loo_2.9.0.zip 1.7 MiB
2.8.0 2025-04-20 source/ R- loo_2.8.0.tar.gz 2.7 MiB

Dependencies (latest)

Imports

Suggests