Run a suite of model diagnostics¶
Source: man/runDiagnostics.Rd ยท Help: ?runDiagnostics
Combines heteroscedasticity checks with tests for collinearity, nonlinearity and influential observations.
Usage¶
runDiagnostics(
model,
data = NULL,
tests = c("white", "koenker"),
power = 2:3,
use_cache = TRUE,
chunk_threshold_mb = 100,
chunk_size = 10000,
progress = interactive()
)
Arguments¶
model- A fitted
lm, or aglmwith the Gaussian family and the identity link, or a formula. The tests refuse aglmof any other family or link since 0.15.0. data- Optional data frame if
modelis a formula. tests- Heteroscedasticity tests to run. Defaults to the White and Koenker tests, the default of
runHeteroTests; it was the White and the classical Breusch-Pagan tests up to 0.14.0. power- Powers for
performRESETTest. use_cache- Logical flag forwarded to
runHeteroTestscontrolling whether cached diagnostic results may be reused. chunk_threshold_mb- Numeric threshold passed to
runHeteroTestsfor enabling streaming diagnostics on large datasets. chunk_size- Integer chunk size supplied to
runHeteroTestswhen streaming diagnostics. progress- Logical flag controlling whether textual progress indicators are displayed during long-running operations.
Value¶
A list with the results of all diagnostics.