Validate diagnostics against reference implementations¶
Source: R/robust_implementations.R ยท Help: ?rvalidate_against_reference
Compares the package's test results with established implementations
from other packages (currently lmtest and car). Differences exceeding
the supplied tolerance are flagged.
Usage¶
Arguments¶
test_name- Character scalar naming the diagnostic: "breusch_pagan", "studentized_bp", or "white".
model- A fitted stats::lm object representing the mean specification to be diagnosed.
data- A base::data.frame (or object coercible to one) containing the
variables referenced by
model. It must include the observations used to fitmodeland will be checked for missing values. tolerance- Acceptable absolute difference between statistics and p-values when comparing to the reference implementation.
Value¶
A list describing the comparison, including a status field with
values "ok", "mismatch", or "skipped" when the reference package
is unavailable.
Deprecated¶
Deprecated since 0.14.0: an internal helper of the package, which leaves the exports in 1.0.0. It still works and warns.