Description Usage Arguments Value Author(s) References See Also Examples
The LOOIC-value (like the non-Bayesian AIC-value) is a useful measure of model performance for model prediction.
1 | looicplot(looiclist, modnames, perc = 90)
|
looiclist |
a list of character-valued names of rstanarm model objects |
modnames |
a character-valued vector of model names for each of the models |
perc |
the percentage credibility for the credible intervals (defaults to 90%) |
None provided, but a printed list of looic-values, their standard errors, and credible intervals, and a dot plot with the same information are produced.
Robert van Hulst
van Hulst, R. 2018. Evaluating Scientific Evidence. ms.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
data(budworm)
Mbudworm1 <- stan_glm(formula = cbind(dead, 20 - dead) ~ ldose,
family = binomial, data = budworm,
prior = student_t(df = 7),
prior_intercept = student_t(df = 7))
Mbudworm2 <- stan_glm(formula = cbind(dead, 20 - dead) ~ ldose * sex,
family = binomial, data = budworm,
prior = student_t(df = 7),
prior_intercept = student_t(df = 7))
Mbudworm3 <- stan_glm(formula = cbind(dead, 20 - dead) ~ ldose + sex,
family = binomial, data = budworm,
prior = student_t(df = 7),
prior_intercept = student_t(df = 7))
looicplot(looiclist = list("Mbudworm1", "Mbudworm2", "Mbudworm3"),
modnames = c("~ ldose", "~ ldose + sex", "~ ldose * sex") )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.