Learn R Programming

generalCorr (version 1.2.6)

get0outliers: Function to compute outliers and their count using Tukey's method using 1.5 times interquartile range (IQR) to define boundaries.

Description

Function to compute outliers and their count using Tukey's method using 1.5 times interquartile range (IQR) to define boundaries.

Usage

get0outliers(x, verbo = TRUE, mult = 1.5)

Value

below

which items are lower than the lower limit

above

which items are larger than the upper limit

low.lim

the lower boundary for outlier detection

up.lim

the upper boundary for outlier detection

nUP

count of number of data points above upper boundary

nLO

count of number of data points below lower boundary

Arguments

x

vector of data.

verbo

set to TRUE(default) assuming printed details are desired.

mult

=1.5(default), the number of times IQR is used in defining outlier boundaries.

Author

Prof. H. D. Vinod, Economics Dept., Fordham University, NY

Examples

Run this code

set.seed(101);x=sample(1:100)[1:15];x[16]=150;x[17]=NA
get0outliers(x)#correctly identifies outlier=150


Run the code above in your browser using DataLab