Validate regression model inputs¶
Source: R/validation.R ยท Help: ?rvalidateModelInputs
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.
Usage¶
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.
Value¶
Invisibly returns model when validation passes.