This function will plot 8 diagnostic plots to assess the model used to fit the data. These include: (1) residuals plot, (2) residuals vs fitted values, (3) histogram of distribution of standardized residuals, (4) Normal Q-Q plot of residuals, (5) ACF plot, (6) PACF plot, (7) Haar Wavelet Variance Representation, (8) Box test results.
diag_plot(Xt = NULL, model = NULL, resids = NULL, std = FALSE)
The data used to construct said model.
A fitsimts
, lm
or gam
object.
A vector
of residuals for diagnostics.
A boolean
indicating whether we use standardized residuals for
(1) residuals plot and (8) Box test results.
Yuming Zhang