| loo-waic | R Documentation |
For models estimated with MCMC, relative model fit comparisons can be made using the LOO-CV or WAIC indicates (Vehtari et al., 2017). These functions are wrappers for the loo package. See the loo package vignettes for details on the implementation.
## S3 method for class ''measr::measrdcm''
loo(x, ..., r_eff = NA, force = FALSE)
## S3 method for class ''measr::measrdcm''
waic(x, ..., force = FALSE)
## S3 method for class ''measr::measrdcm''
loo_compare(x, ..., criterion = c("loo", "waic"), model_names = NULL)
x |
A measrdcm object. |
... |
For |
r_eff |
Vector of relative effective sample size estimates for the
likelihood ( |
force |
If the LOO criterion has already been added to the
model object with |
criterion |
The name of the criterion to be extracted from the
|
model_names |
Names given to each provided model in the comparison
output. If |
For loo() and waic(), the information criteria returned by
loo::loo.array() or loo::waic.array(), respectively.
For loo_compare(), the criterion comparison returned by
loo::loo_compare().
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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s11222-016-9696-4")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.