lm_outliers: Returns outlier indices

Description Usage Arguments Author(s) References Examples

Description

Returns a data.frame with a specific lm model's studentized residuals, residuals' cook's distance, and residuals' hat values.

Returns a data.frame with a specific lm model's studentized residuals, residuals' cook's distance, and residuals' hat values.

Usage

1
2
3
lm_outliers(data, formula, id, verbose = TRUE)

lm_outliers(data, formula, id, verbose = TRUE)

Arguments

data

A data.frame.

formula

A model formula.

id

A column name from data used to identify observations.

verbose

A boolean indicating wether the function should call print on the output. Useful when lm_outliers with pipes.

data

A data.frame.

formula

A model formula.

id

A column name from data used to identify observations.

verbose

A boolean indicating wether the function should call print on the output. Useful when lm_outliers with pipes.

Author(s)

Dominique Muller, dominique.muller@univ-grenoble-alpes.fr

Cédric Batailler, cedric.batailler@univ-grenoble-alpes.fr

Dominique Muller, dominique.muller@univ-grenoble-alpes.fr

Cédric Batailler, cedric.batailler@univ-grenoble-alpes.fr

References

Judd, C. M., McClelland, G. H., & Ryan, C. S. (2009). Data analysis: a model comparison approach (2nd ed). New York ; Hove: Routledge.

Judd, C. M., McClelland, G. H., & Ryan, C. S. (2009). Data analysis: a model comparison approach (2nd ed). New York ; Hove: Routledge.

Examples

1
2
3
4
5
6
7
library(magrittr)
library(LIPmisc)

mtcars %T>%
  lm_outliers(mpg ~ disp) %>%
  lm(mpg ~ disp,
     data = .)

cedricbatailler/LIPmisc documentation built on May 15, 2019, 1:28 p.m.