This function plots a histogram (with kernel density function and normal distribution) of the standardized residuals or a basic plot the (standardized) residuals, or both.
resid_plot(res, std = FALSE, type = "hist", ...)
A vector
of residuals.
A boolean
indicating whether the residuals plot is for standardized
residuals or original residuals.
A string
indicating either:
"hist"
(standardized residual histogram with superimposed kernel density estimator and normal distribution), "resid"
(standard residual plot),
or "both"
Additional parameters
Yuming Zhang