Creates random intercept model text for all sets of variables passed via var_groups.

random_intercepts(var_groups)

Arguments

var_groups

A list of vectors of variable names. Each element of the list will be used to generate model text for a latent random intercept.

Value

A matrix with columns for each top-level element of var_groups and rows for each element of the list returned by a_random_intercept.