View source: R/ch_high_Grubbs_test.R
| ch_high_Grubbs_test | R Documentation |
Checks for outliers among the highest fifteen events, assumes the data are normally distributed and uses the Grubbs test to determine if the highest value is an outlier. If it is an outlier the next largest is tested until the value is not an outlier, or 15 values have been tested.
ch_high_Grubbs_test(amax)
amax |
A vector of the annual maxima |
result A vector of the same length as amax with a 1 for those values that are high outliers else zero.
Paul Whitfield
set.seed(1234)
x = rnorm(10)
x[11] <- 15
x[12] <- 35
ch_high_Grubbs_test(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.