tukey_outlier: Tukey Outlier Threshold

Description Usage Arguments Value Examples

View source: R/outliers.R

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

1

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

1
2
3
4
## Not run: 
tukey_outlier(heart_disease$age)

## End(Not run)

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, units

funModeling v.1.7 :)
Examples and tutorials at livebook.datascienceheroes.com

bottom_threshold    top_threshold 
               9              100 

funModeling documentation built on July 1, 2020, 5:40 p.m.