outlierWH {DescriptiveWH} | R Documentation |
Outliers detection
Description
The function used to detect atypical values in a data set
Usage
outlierWH(x, lower = NULL, upper = NULL, dec = NULL)
Arguments
x |
Numeric. A vector of the data set. |
lower |
Numeric. A value representing the lower limit of outliers. |
upper |
Numeric. A value representing the upper limit of outliers. |
dec |
Numeric. A value to define the decimal numbers |
Details
This function shows a list with the putative outliers and other without those. If you do not type lower and upper values, by default the value is assumed as the standard deviation of "x" multipied two.
Value
A list including three elements: 1) A data frame including the mean, the standart deviation, and the upper and lower limits of outliers, 2) A numeric vector with data considered no outliers, and 2) A numeric vector including the putative outliers.
Examples
#Example 1
data=rnorm(100,30,15)
outlierWH( x=data ,lower=15 ,upper=35 )
#Example 2
outlierWH( x=data )
#Example 3
outlierWH( x=data ,lower=15 )
[Package DescriptiveWH version 1.0.3 Index]