loo

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

CRAN Package

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.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 52,962 times in the last 30 days. This work is reaching a lot of screens. A significant achievement indeed! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 1,947 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
1,981 downloadsMar 3, 2025
2,266 downloadsMar 4, 2025
2,336 downloadsMar 5, 2025
2,186 downloadsMar 6, 2025
1,720 downloadsMar 7, 2025
944 downloadsMar 8, 2025
1,070 downloadsMar 9, 2025
2,034 downloadsMar 10, 2025
2,222 downloadsMar 11, 2025
2,135 downloadsMar 12, 2025
2,132 downloadsMar 13, 2025
1,717 downloadsMar 14, 2025
954 downloadsMar 15, 2025
1,182 downloadsMar 16, 2025
2,019 downloadsMar 17, 2025
1,876 downloadsMar 18, 2025
1,887 downloadsMar 19, 2025
1,841 downloadsMar 20, 2025
1,888 downloadsMar 21, 2025
938 downloadsMar 22, 2025
1,083 downloadsMar 23, 2025
2,020 downloadsMar 24, 2025
2,744 downloadsMar 25, 2025
2,290 downloadsMar 26, 2025
2,058 downloadsMar 27, 2025
1,758 downloadsMar 28, 2025
939 downloadsMar 29, 2025
924 downloadsMar 30, 2025
1,871 downloadsMar 31, 2025
1,947 downloadsApr 1, 2025
0 downloadsApr 2, 2025
0 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
924
2,744

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 571,302 times in the last 365 days. The kind of popularity that makes other researchers envious. Truly impressive! The day with the most downloads was Mar 25, 2025 with 2,744 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports3 packages
  • Suggests9 packages
  • Reverse Depends4 packages
  • Reverse Imports50 packages
  • Reverse Suggests11 packages