
Random effects with explicit grouping columns
Source:R/utils-formulas.R
build_default_random_effects.RdBuilds the structure of default_random_effects() from coded data with
grouping columns that can be set explicitly; each NULL falls back
to the column tier_vars() detects.
Usage
build_default_random_effects(
model_data,
case_var = NULL,
nest_var = NULL,
study_var = NULL
)Arguments
- model_data
Coded data from
process_scd_phases().- case_var, nest_var, study_var
Optional column names for the case-level grouping, the within-case grouping (e.g., behavior, skill, task), and the study-level grouping.