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 = Inf,
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- Size of the data in megabytes above which
runHeteroTestsruns the streaming forms of the White, Breusch-Pagan and Koenker tests. The default,Inf, never streams; give a finite value to ask for them. Up to 0.15.0 the default was100. chunk_size- Integer chunk size supplied to
runHeteroTestswhen the streaming tests run. progress- Logical flag controlling whether textual progress indicators are displayed during long-running operations.
Value¶
A list with the results of all diagnostics.