Model comparison via LOO-CV
Usage
run_model_comparison(
data,
model_formulas,
family = "gaussian",
iter = 1000,
chains = 2,
existing_model = NULL
)Value
A list with LOO comparison table, fitted models, and LOO objects,
or NULL if fewer than two models succeed.
Examples
if (interactive()) {
dat <- simulate_scd_data()
run_model_comparison(dat, build_comparison_models("outcome", "phase", "case"))
}
