Generate a model formula from dependent, confounding, and random vars

.generate_model_from_vars(
  sce,
  dependent_var,
  confounding_vars,
  random_effects_var = NULL,
  interaction_vars = NULL,
  prefix = NULL
)

Arguments

sce

the data

dependent_var

the dependent variable

confounding_vars

the confounding variables

random_effects_var

the random effect variables (optional)

interaction_vars

variables which interact (optional)

prefix

a variable prefix (e.g. "sce$") (optional)

Value

model_formula a model formula