Learn R Programming

climtrends (version 1.0.6)

FindOutliersGrubbsTwosided: Find outliers based on the Grubbs test

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

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.

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

Run this code
# 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)

Run the code above in your browser using DataLab