Learn R Programming

EmpiricalDynamics (version 0.1.2)

residual_diagnostics: Comprehensive Residual Diagnostics

Description

Performs a battery of statistical tests on model residuals to check for autocorrelation, heteroscedasticity, and normality.

Usage

residual_diagnostics(
  residuals,
  data = NULL,
  predictors = NULL,
  max_lag = 10,
  plot = TRUE
)

Value

A list of test results with class "residual_diagnostics"

Arguments

residuals

Numeric vector of residuals (or model object)

data

Optional data frame for conditional tests

predictors

Variable names for heteroscedasticity tests

max_lag

Maximum lag for autocorrelation tests

plot

Produce diagnostic plots?