plot_regression_diagnostics: Plot diagnostics output from calculate_regression_diagnostics...

View source: R/calculate_regression_diagnostics.R

plot_regression_diagnosticsR Documentation

Plot diagnostics output from calculate_regression_diagnostics as a multi-panel grid (base R)

Description

Creates a static 3x2 grid of base R plots showing regression diagnostics:

  • Normality (Shapiro-Wilk)

  • Linearity (Adjusted R-squared)

  • Heteroscedasticity (Breusch-Pagan)

  • Autocorrelation (Durbin-Watson)

  • Autocorrelation (p-value DW)

Usage

plot_regression_diagnostics(diagnostics, title = "Regression Diagnostics")

Arguments

diagnostics

A data.frame as returned by calculate_regression_diagnostics()

title

Optional overall title for the entire plot grid (default: "Regression Diagnostics")

Value

None. Produces plots in the active graphics device.

Author(s)

Vivek Gajadhar

Examples

plot_regression_diagnostics(
  calculate_regression_diagnostics(
    dataset = data_constraxion,
    period_variable = "period",
    dependent_variable = "price",
    numerical_variables = c("floor_area", "dist_trainstation"),
    categorical_variables = c("dummy_large_city", "neighbourhood_code")
  )
)

REPS documentation built on March 16, 2026, 5:08 p.m.