LOO-related Indices for Bayesian regressions.
Compute LOOIC (leave-one-out cross-validation (LOO) information criterion) and ELPD (expected log predictive density) for Bayesian regressions.
looic(model, verbose = TRUE)
model |
A Bayesian regression model. |
verbose |
Toggle off warnings. |
A list with four elements, the ELPD, LOOIC and their standard errors.
if (require("rstanarm")) { model <- stan_glm(mpg ~ wt + cyl, data = mtcars, chains = 1, iter = 500, refresh = 0) looic(model) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.