Description Usage Arguments See Also Examples
Simple function to produce a plots and a final data frame from studentized deleted residuals, hat values (leverage), and Cook's distance, after a model run in lm(). Resulting dataframe will be sorted by the inThree variable (observation is considered an outlier on all three plots) and then the Cooks_D variable.
1 | threeOuts(obj, key.variable = NULL, print.plot = FALSE)
|
obj |
Model object from an lm() fiitted equation. |
key.variable |
Required if lm() data object is of tibble class. Name of the unique key variable (identifier variable). If data object is of data.frame class, this is optional and row.names will be used instead. |
print.plots |
Logical: Should plots for all three outlier tests be shown? |
studResidPlot
levPlot
cooksPlot
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.