Ensures that a supplied regression model satisfies the basic assumptions required by the heteroscedasticity testing infrastructure. The checks include class validation, successful fitting, availability of finite residuals, and minimum sample size requirements.
Arguments
- model
A fitted model object produced by
stats::lm()orstats::glm().- test_name
A scalar character identifier used in error messages to reference the calling test.
- min_obs
Minimum number of observations required for the calling procedure. Defaults to
10.