View source: R/ols-rstud-vs-lev-plot.R
ols_plot_resid_lev | R Documentation |
Graph for detecting outliers and/or observations with high leverage.
ols_plot_resid_lev(model, threshold = NULL, print_plot = TRUE)
model |
An object of class |
threshold |
Threshold for detecting outliers. Default is 2. |
print_plot |
logical; if |
ols_plot_resid_stud_fit()
, ols_plot_resid_lev()
model <- lm(read ~ write + math + science, data = hsb)
ols_plot_resid_lev(model)
ols_plot_resid_lev(model, threshold = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.