Description Usage Arguments Value Examples
View source: R/residual_plots.R
Plots the histogram of regression residuals to check for normality. Includes results of Shapiro-Wilk test in visualization.
1 | residual_histogram(df, model)
|
df |
A dataframe R will pull the variables from to run the regression |
model |
A model object or valid formula. |
A density histogram of the residuals
1 2 3 4 5 6 7 | mtcars %>%
residual_histogram(hp ~ cyl)
my_lm <- lm(hp ~ cyl, data = mtcars)
mtcars %>%
residual_histogram(my_lm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.