Computes WAIC from posterior log-likelihood draws using loo::waic().
Usage
WAIC(object, ghk_draws = 500L, progress = interactive(), ...)Arguments
- object
[
RprobitB_fit]
Fitted choice model.- ghk_draws
[
integer(1)]
Number of draws of the GHK simulator for multivariate normal probabilities of more than three dimensions, seeoeli::pmvnorm().- progress
[
logical(1)]
Show progress?- ...
Further arguments passed to
loo::waic().
Value
A waic object from loo. Its
estimates matrix contains WAIC, effective parameter counts, and their
standard errors.
References
Watanabe S (2010). “Asymptotic Equivalence of Bayes Cross Validation and Widely Applicable Information Criterion in Singular Learning Theory.” Journal of Machine Learning Research, 11, 3571–3594. https://www.jmlr.org/papers/v11/watanabe10a.html.
Vehtari A, Gelman A, Gabry J (2017). “Practical Bayesian Model Evaluation Using Leave-One-Out Cross-Validation and WAIC.” Statistics and Computing, 27(5), 1413–1432. doi:10.1007/s11222-016-9696-4 .
