powered by
Graph for detecting outliers and/or observations with high leverage.
ols_plot_resid_lev(model, threshold = NULL, print_plot = TRUE)
An object of class lm.
lm
Threshold for detecting outliers. Default is 2.
logical; if TRUE, prints the plot else returns a plot object.
TRUE
ols_plot_resid_stud_fit(), ols_plot_resid_lev()
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)
Run the code above in your browser using DataLab