View source: R/calculate_regression_diagnostics.R
| plot_regression_diagnostics | R Documentation |
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)
plot_regression_diagnostics(diagnostics, title = "Regression Diagnostics")
diagnostics |
A data.frame as returned by calculate_regression_diagnostics() |
title |
Optional overall title for the entire plot grid (default: "Regression Diagnostics") |
None. Produces plots in the active graphics device.
Vivek Gajadhar
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")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.