Skip to contents

Calculates various criterion for a list of brms models using the add_criterion function.

Usage

table_criterion(
  fits,
  criterion = c("loo", "loo_R2", "bayes_R2", "log_lik"),
  sort = TRUE,
  ...
)

Arguments

fits

a list of model fits in the order that you want to compare them

criterion

the criterion to use

sort

to sort the table with the best models at the top

...

additional parameters passed to add_criterion