tukey_outlier: Tukey Outlier Threshold

View source: R/outliers.R

tukey_outlierR Documentation

Tukey Outlier Threshold

Description

Retrieves the bottom and top boundaries to flag outliers or extreme values, according to the Tukey's test. More info at https://en.wikipedia.org/wiki/Outlier#Tukey.27s_test This function is used in 'prep_outliers' function. All 'NA's values are automatically excluded. More information at: https://livebook.datascienceheroes.com/data-preparation.html#how_to_deal_with_outliers_in_r.

Usage

tukey_outlier(input)

Arguments

input

Numeric variable vector

Value

A two-item vector, the first value represents the bottom threshold, while the second one is the top threshold

Examples

## Not run: 
tukey_outlier(heart_disease$age)

## End(Not run)

pablo14/funModeling documentation built on July 30, 2023, 10:59 a.m.