Description Usage Arguments Value Examples
Identify highly influential observations based on cooks distance. Common outlier threshold is 4*mean of cooksD
1 | plot_cooksD(lin.mod, threshold, noplot)
|
lin.mod |
model fit, lm, glm, lmm, glmm |
threshold |
threshold for outlier flagging. Usually 4 (4*mean cooks D) |
noplot |
optional to plot outlier observations, leave blank for no plot |
a list of observation indices based on the original data frame
1 | outliers.cooksd <- plot_cooksD(fit, noplot = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.