Learn R Programming

lares (version 5.1.0)

outlier_turkey: Outliers: Tukey<U+2019>s fences

Description

Tukey<U+2019>s fences is a technique used in box plots. The non-outlier range is defined with [Q1-k(Q3-Q1), Q3+k(Q3-Q1)], where Q1 and Q3 are the lower and upper quartiles respectively, k - some non-negative constant (popular choice is 1.5). A value is an outlier based on Tukey<U+2019>s fences when its value does not lie in non-outlier range.

Usage

outlier_turkey(x, k = 1.5)

Arguments

x

Numeric. Distribution

k

Positive Numeric. K-multiplier.

Value

Boolean vector detecting outliers.

See Also

Other Outliers: outlier_zscore_plot(), outlier_zscore(), winsorize()