powered by
Function to compute outliers and their count using Tukey method using 1.5 times interquartile range (IQR) to define boundaries.
get0outliers(x, verbo = TRUE, mult = 1.5)
vector of data.
set to TRUE(default) assuming printed details are desired.
=1.5(default), the number of times IQR is used in defining outlier boundaries.
which items are lower than the lower limit
which items are larger than the upper limit
the lower boundary for outlier detection
the upper boundary for outlier detection
count of number of data points above upper boundary
count of number of data points below lower boundary
# NOT RUN { 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