R/subtyper.R
convert_to_random_effects.Rd
This function takes a vector of strings representing grouping factors and converts each string into a random effect term formatted for use in lme4 model formulas. Specifically, it formats them as random intercepts for the specified grouping factors.
convert_to_random_effects(variables)
A character vector of random effect terms, each formatted as (1|group)
,
where group
is replaced with each string from the input vector.