Skip to contents

Combines named brms_model() specs into a single data frame with one row per model and formula/family/prior/stanvars list-columns, ready to pass as fit_grid to simulation_config(). A model column holds the spec names and lands in the summary as fit_model.

Usage

model_grid(...)

Arguments

...

Named brms_model() specs (or any named lists with the same component names).

Value

A tibble with columns model, formula, family, prior, stanvars.

Examples

if (FALSE) { # \dontrun{
grid <- model_grid(
  gaussian = brms_model(y ~ x, gaussian()),
  student  = brms_model(y ~ x, student())
)
} # }