loo_compare {baggr}R Documentation

Compare fitted models on loo

Description

Compare fitted models on loo

Usage

loo_compare(x, ...)

Arguments

x

An object of class baggr_cv or a list of such objects.

...

Additional objects of class "baggr_cv"

Examples

## Not run: 
# 2 models with more/less informative priors -- this will take a while to run
cv_1 <- loocv(schools, model = "rubin", pooling = "partial")
cv_2 <- loocv(schools, model = "rubin", pooling = "partial",
              prior_hypermean = normal(0, 5), prior_hypersd = cauchy(0,4))
loo_compare(cv_1, cv_2)

## End(Not run)

[Package baggr version 0.6.4 Index]