outlierWH: Outliers detection

Description Usage Arguments Details Value Examples

View source: R/outlierWH.R

Description

The function used to detect atypical values in a data set

Usage

1
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

1
2
3
4
5
6
7
#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 )

DescriptiveWH documentation built on June 17, 2021, 9:06 a.m.