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) . 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.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("loo")

2.10.1 by Jonah Gabry, 2 months ago


https://mc-stan.org/loo/, https://discourse.mc-stan.org


Report a bug at https://github.com/stan-dev/loo/issues


Browse source code at https://github.com/cran/loo


Authors: Aki Vehtari [aut] , Jonah Gabry [cre, aut] , Måns Magnusson [aut] , Yuling Yao [aut] , Paul-Christian Bürkner [aut] , Topi Paananen [aut] , Andrew Gelman [aut] , Ben Goodrich [ctb] , Juho Piironen [ctb] , Bruno Nicenboim [ctb] , Leevi Lindgren [ctb] , Visruth Srimath Kandali [ctb] , Florence Bockting [ctb]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports checkmate, matrixStats, parallel, posterior, stats

Suggests bayesplot, brms, ggplot2, graphics, knitr, rmarkdown, rstan, rstanarm, rstantools, spdep, testthat

System requirements: pandoc (>= 1.12.3), pandoc-citeproc


Imported by BAMBI, BMIselect, BayesERtools, BayesGrowth, BayesianFitForecast, CLRtools, CRTspat, EBcoBART, FlexReg, GMLTM, GPTCM, HeckmanStan, LMMELSM, MetaStan, MixSIAR, RoBMA, RprobitB, StanMoMo, adjustr, bayclumpr, bayesDiagnostics, bayesdfa, bayesforecast, bayesnec, bellreg, bivarhr, blavaan, bmgarch, bmggum, bnns, brms, bscm, bsitar, causalOT, clmstan, conformalbayes, dcvar, disbayes, dynamite, eDNAjoint, flocker, glmmfields, hBayesDM, hbamr, hdbayes, hsstan, mcmcsae, mcp, measr, missingHE, moewishart, multilevelcoda, mvgam, pcFactorStan, phylopairs, projpred, publipha, qbrms, rater, rbioacc, rmsb, rmstBayespara, rstan, rstanarm, rtmpt, serofoi, shinymrp, smoothbp, spStack, survextrap, tsnet, ubms, walker.

Depended on by TriDimRegression, bistablehistory.

Suggested by BSTFA, BayesianDEB, BayesianDisaggregation, BoundIRT, ErrorTracer, ForceChoice, GUD, HTDV, SSRTcalc, SignalY, bayesianOU, bayesplot, bayesqm, bayesvl, bmstdr, cdtmbnma, cogmod, expertsurv, eyeprocess, featR, fitdistrBayes, footBayes, gdpar, gp3bayes, hbsaems, idealstan, lame, mlumr, multinma, neodistr, nlmixr2est, performance, rPBK, redist, report, spatialkit, spicy, stLMM, tipsae, tulpa, valueprhr, webSDM.


See at CRAN