View source: R/model_comparison.R
waic.rater_fit | R Documentation |
Compute the WAIC - a measure of model fit - of a rater fit object.
## S3 method for class 'rater_fit'
waic(x, ...)
x |
A |
... |
Other arguments passed. |
This function provides provides an additional method for model
comparison, on top of the loo()
function. In general we recommend that
loo()
is preferred: see the documentation of the loo package for details.
Also, note the comments regarding model selection the the details section
of loo()
.
A waic/loo object.
Watanabe, S. (2010). Asymptotic equivalence of Bayes cross validation and widely application information criterion in singular learning theory. Journal of Machine Learning Research 11, 3571-3594.
Vehtari, A., Gelman, A., and Gabry, J. (2017a). 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 (journal version, preprint arXiv:1507.04544).
fit_ds <- rater(anesthesia, "dawid_skene", verbose = FALSE, chains = 1)
fit_ccds <- rater(anesthesia, "class_conditional_dawid_skene",
verbose = FALSE, chains = 1)
waic(fit_ds)
waic(fit_ccds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.