Wrapper function to check that
all used variables are present in the data
that the classes of the variables are of a type for which default model types are defined
checks for empty variable levels
converts binary continuous variables and logical variables to factors
check_data(data, fixed, random, auxvars, timevar, mess, warn)the cleaned data.frame
a data.frame
a formula (or list of formulas)
a one-sided formula (or list of one-sided formulas)
a one-sided formula
a character string (name of the time variable, used in joint models)
logical, if TRUE messages are printed
logical, if TRUE warnings are printed
used in model_imp() (2025-09-04)