Skip to contents

Inspect available random effects

Usage

repair_effects(models)

Arguments

models

A fitted Gaussian lme4::lmer() or linear nlme::lme() model, a repair_mlm() specification, an experimental repair_bayes_plugin() snapshot, or a named list mixing these types. Specifications are fitted once during this call.

Value

A data frame with model, group, term, and n_levels columns. A bare model is named mlm. Terms are scalar coefficient names. The catalog includes nuisance groups; discovery does not establish eligibility for structural fitting. Select the target with the group argument of re().

Examples

data(repair_example)
growth <- lme4::lmer(score ~ day + (day | person), repair_example$repeated)
repair_effects(list(growth = growth))
#>    model  group        term n_levels
#> 1 growth person (Intercept)       60
#> 2 growth person         day       60