outlier: Identify outliers in a series of residuals

Description Usage Arguments Value Author(s) See Also Examples

View source: R/outlier.R

Description

Identifies outliers in a series of residuals according their index number in the vector.

Usage

1
outlier(x, type = "outlier", p = 0.05, plot.it = TRUE)

Arguments

x

vector of residuals

type

One of "outlier", "max.abs", or "max.min".

p

p-value

plot.it

logical, should the results be plotted

Value

Returns a list with two components:

There are three types:

Author(s)

Michael Malick

See Also

qqnorm

Examples

1
2
3
4
5
set.seed(29)
x <- rnorm(25)
y <- rnorm(25)
fit <- lm(y ~ x)
outlier(resid(fit))

michaelmalick/r-malick documentation built on May 22, 2017, 6:37 a.m.