Perform lightweight diagnostics on the response and predictors to catch common issues that derail model fitting (missingness, zero variance, impossible values for specific families, simple multicollinearity flags, and sample-size sanity checks).
validate_model_data(formula, data, family, verbose = TRUE)A list with elements valid (logical), errors
(character vector), warnings (character vector), and
n_complete (integer count of complete cases across the variables
in the model).
A model formula.
A data.frame containing the variables in the model.
A family object such as gaussian(), binomial(),
or poisson(). Used for basic, family-specific checks.
Logical; print a summary of issues found.