get0outliers {generalCorr} | R Documentation |
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)
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. |
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 |
Note
The function removes the missing data before checking for outliers.
Author(s)
Prof. H. D. Vinod, Economics Dept., Fordham University, NY
Examples
set.seed(101);x=sample(1:100)[1:15];x[16]=150;x[17]=NA
get0outliers(x)#correctly identifies outlier=150
[Package generalCorr version 1.2.6 Index]