| plot_residuals | R Documentation |
Creates diagnostic plots for model residuals including residuals vs fitted, scale-location, and histogram of residuals.
plot_residuals(object, type = c("all", "fitted", "histogram", "qq"), ...)
object |
A fitted model object. |
type |
Character; type of residual plot. One of:
|
... |
Additional arguments passed to plotting functions. |
A ggplot2 object or list of ggplot2 objects.
data(apt)
fit <- fit_demand_hurdle(apt, y_var = "y", x_var = "x", id_var = "id")
plot_residuals(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.