lm_outliers | R Documentation |
Returns a data.frame
with outlier indices for a specific lm
model. Indices include studentized residuals, residuals' cook's distance,
and residuals' hat values.
lm_outliers(data, formula, id, verbose = FALSE)
data |
A data.frame. |
formula |
A model formula. |
id |
A column name from |
verbose |
A boolean indicating whether the function should call print on
the output. Useful when using |
Dominique Muller, dominique.muller@univ-grenoble-alpes.fr
Cédric Batailler, cedric.batailler@univ-grenoble-alpes.fr
Judd, C. M., McClelland, G. H., & Ryan, C. S. (2009). Data analysis: a model comparison approach (2nd ed). New York ; Hove: Routledge.
mtcars |> lm_outliers(mpg ~ disp) |> lm(mpg ~ disp, data = _)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.