Learn R Programming

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

loo (version 0.1.2)

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

Description

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

Copy Link

Version

Install

install.packages('loo')

Monthly Downloads

46,024

Version

0.1.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Jonah Gabry

Last Published

July 16th, 2015

Functions in loo (0.1.2)

psisloo

psisloo
nlist

Named lists
psislw

Pareto smoothed importance sampling (PSIS)
compare

Model comparison
loo_and_waic

Approximate LOO-CV and WAIC for Bayesian models
loo-package

Efficient LOO and WAIC for Bayesian models
gpdfit

Generalized Pareto distribution
loo

Leave-one-out cross-validation (LOO)
print.loo

Print methods
extract_log_lik

Extract log-likelihood from a Stan model
waic

Widely applicable information criterion (WAIC)