findOutliers.Grubbs.twosided: Find outliers based on the Grubbs test

Description Usage Arguments Value Author(s) Source References Examples

Description

FindOutliersGrubbsTwosided returns the position of the values outside the allowed range by a criteria based on the Grubbs test (two-sided, one-sided max and one-sided min).

Usage

1
FindOutliersGrubbsTwosided(dataSeries,alpha=0.05, iterative=TRUE)

Arguments

dataSeries

time series of climate data

alpha

significance level

iterative

logical, TRUE=iterative, FALSE=first value only

Value

Vector with the positions of the outliers.

Author(s)

Jose Gama

Source

NIST/SEMATECH e-Handbook of Statistical Methods, 2013 http://www.itl.nist.gov/div898/handbook/

References

NIST/SEMATECH e-Handbook of Statistical Methods, 2013 http://www.itl.nist.gov/div898/handbook/

Examples

1
2
3
4
# Input data from the Tietjen and Moore paper.
y = c(199.31,199.53,200.19,200.82,201.92,201.95,202.18,245.57)
FindOutliersGrubbsTwosided(y, iterative=FALSE)
FindOutliersGrubbsTwosided(y)

Example output

            G        p posG
[1,] 2.468765 1.475612    8
            G        p posG
[1,] 2.468765 1.475612    8
[2,] 1.439785 1.336233    2
[3,] 1.415515 1.248505    3

climtrends documentation built on May 29, 2017, 11:58 p.m.