loo2.8.0 package

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

dot-thin_draws

Thin a draws object

E_loo

Compute weighted expectations

weights.importance_sampling

Extract importance sampling weights

dot-ndraws

The number of posterior draws in a draws object.

ap_psis

Pareto smoothed importance sampling (PSIS) using approximate posterior...

compare

Model comparison (deprecated, old version)

crps

Continuously ranked probability score

dot-compute_point_estimate

Compute a point estimate from a draws object

elpd

Generic (expected) log-predictive density

example_loglik_array

Objects to use in examples and tests

extract_log_lik

Extract pointwise log-likelihood from a Stan model

find_model_names

Find the model names associated with "loo" objects

gpdfit

Estimate parameters of the Generalized Pareto distribution

loo_subsample

Efficient approximate leave-one-out cross-validation (LOO) using subsa...

importance_sampling

A parent class for different importance sampling methods.

kfold-generic

Generic function for K-fold cross-validation for developers

kfold-helpers

Helper functions for K-fold cross-validation

loo_approximate_posterior

Efficient approximate leave-one-out cross-validation (LOO) for posteri...

loo_compare

Model comparison

loo_model_weights

Model averaging/weighting via stacking or pseudo-BMA weighting

loo_moment_match_split

Split moment matching for efficient approximate leave-one-out cross-va...

loo_moment_match

Moment matching for efficient approximate leave-one-out cross-validati...

loo_predictive_metric

Estimate leave-one-out predictive performance..

relative_eff

Convenience function for computing relative efficiencies

loo-datasets

Datasets for loo examples and vignettes

loo-glossary

LOO package glossary

loo-package

Efficient LOO-CV and WAIC for Bayesian models

loo

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

nlist

Named lists

nobs.psis_loo_ss

The number of observations in a psis_loo_ss object.

obs_idx

Get observation indices used in subsampling

old-extractors

Extractor methods

sis

Standard importance sampling (SIS)

tis

Truncated importance sampling (TIS)

update.psis_loo_ss

Update psis_loo_ss objects

waic

Widely applicable information criterion (WAIC)

parallel_psis_list

Parallel psis list computations

pareto-k-diagnostic

Diagnostics for Pareto smoothed importance sampling (PSIS)

pointwise

Convenience function for extracting pointwise estimates

print_dims

Print dimensions of log-likelihood or log-weights matrix

print.loo

Print methods

psis_approximate_posterior

Diagnostics for Laplace and ADVI approximations and Laplace-loo and AD...

psis

Pareto smoothed importance sampling (PSIS)

psislw

Pareto smoothed importance sampling (deprecated, old version)

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.

  • Maintainer: Jonah Gabry
  • License: GPL (>= 3)
  • Last published: 2024-07-03