get0outliers | R Documentation |
Function to compute outliers and their count using Tukey's method using 1.5 times interquartile range (IQR) to define boundaries.
get0outliers(x, verbo = TRUE, mult = 1.5)
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. |
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 |
The function removes the missing data before checking for outliers.
Prof. H. D. Vinod, Economics Dept., Fordham University, NY
set.seed(101);x=sample(1:100)[1:15];x[16]=150;x[17]=NA
get0outliers(x)#correctly identifies outlier=150
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.