Compare information criteria of different models fitted
Deprecated and will be removed in the future. Please use
At least two objects returned by
The name of the information criterion to be extracted
loo_compare for the recommended way
of comparing models with the loo package.
An object of class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
## Not run: # model with population-level effects only fit1 <- brm(rating ~ treat + period + carry, data = inhaler) waic1 <- waic(fit1) # model with an additional varying intercept for subjects fit2 <- brm(rating ~ treat + period + carry + (1|subject), data = inhaler) waic2 <- waic(fit2) # compare both models compare_ic(waic1, waic2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.