View source: R/residual_plots.R
residual_plots | R Documentation |
Residual Plots for Linear Models
residual_plots(model, type = "b")
model |
Logical indicating whether the model-level partitioning (TRUE) or term-level partitioning (FALSE; default) should be used |
type |
Character string indicating the type of residual plot to return. The default is |
One or more plots of the standardized residuals. In the density plot, a confidence envelope of reasonable values based on the normality assumption being true is produced along with the empirical density of the residuals. In the scatterplot of the standardized residuals versus the fitted values, a confidence envelope of reasonable values based on the mean residual = 0 (linearity) is produced along with the loess smoother based on the empirical data.
lm.1 = lm(mpg ~ 1 + hp + wt, data = mtcars)
residual_plots(lm.1, type = "b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.