This function will plot four diagnostic plots to assess how well the model fits the data. These plots are: (1) residuals plot, (2) histogram of (standardized) residuals, (3) normal Q-Q plot of residuals and (4) residuals vs fitted values plot.
simple_diag_plot(Xt, model, std = FALSE)
The original time series data.
The arima
model fit to the data.
A boolean
indicating whether we use standardized residuals for the
(1) residuals plot and the (2) histogram of (standardized) residuals.
Yuming Zhang