Learn R Programming

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

loo (version 2.1.0)

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

Description

Efficient approximate leave-one-out cross-validation (LOO) for Bayesian models fit using Markov chain Monte Carlo. 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.

Copy Link

Version

Install

install.packages('loo')

Monthly Downloads

46,593

Version

2.1.0

License

GPL (>= 3)

Maintainer

Last Published

March 13th, 2019

Functions in loo (2.1.0)

E_loo

Compute weighted expectations
old-extractors

Extractor methods
print.loo

Print methods
psis

Pareto smoothed importance sampling (PSIS)
psislw

Pareto smoothed importance sampling (deprecated, old version)
psis_approximate_posterior

Diagnostics for Laplace and ADVI approximations and Laplace-loo and ADVI-loo
find_model_names

Find the model names associated with loo objects
gpdfit

Estimate parameters of the Generalized Pareto distribution
relative_eff

Convenience function for computing relative efficiencies
waic

Widely applicable information criterion (WAIC)
example_loglik_array

Objects to use in examples and tests
loo-datasets

Datasets for loo examples and vignettes
extract_log_lik

Extract pointwise log-likelihood from a Stan model
loo-package

Efficient LOO-CV and WAIC for Bayesian models
loo-glossary

LOO package glossary
loo

Efficient approximate leave-one-out cross-validation (LOO)
loo_compare

Model comparison
loo_model_weights

Model averaging/weighting via stacking or pseudo-BMA weighting
compare

Model comparison
kfold-generic

Generic function for K-fold cross-validation for developers
kfold-helpers

Helper functions for K-fold cross-validation
pareto-k-diagnostic

Diagnostics for Pareto smoothed importance sampling (PSIS)
nlist

Named lists
print_dims

Print dimensions of log-likelihood or log-weights matrix