Skip to contents

Flags observations whose absolute deviation from the sample median exceeds a sample-size–adjusted multiple of the median absolute deviation.

Usage

OR.outliers(x, p = 0.05)

Arguments

x

Numeric vector of observations.

p

Target two-sided exclusion proportion under normality. That is, the proportion of observations expected to lie beyond the cutoff in a sample of size n from a normal distribution. Default = 0.05.

Value

Logical vector of the same length as x where TRUE indicates an outlier.

See also