Performes the Standard Normal Homogeinity Test (SNHT) for change-point detection of a normal variate.
snh.test(x, m = 20000)
A list with class "htest" and "cptest"
character string that denotes the input data
the p-value
the test statistic
the null hypothesis
the time of the probable change point
the alternative hypothesis
character string that denotes the test
numeric vector of Tk for plotting
a vector of class "numeric" or a time series object of class "ts"
numeric, number of Monte-Carlo replicates, defaults to 20000
Let
with
The test statistic for the SNHT test is calculated as follows:
where
The critical value is:
The p.value
is estimated with a Monte Carlo simulation
using m
replicates.
Critical values based on
H. Alexandersson (1986), A homogeneity test applied to precipitation data, Journal of Climatology 6, 661--675.
M. N. Khaliq, T. B. M. J. Ouarda (2007), On the critical values of the standard normal homogeneity test (SNHT), International Journal of Climatology 27, 681--687.
G. Verstraeten, J. Poesen, G. Demaree, C. Salles (2006), Long-term (105 years) variability in rain erosivity as derived from 10-min rainfall depth data for Ukkel (Brussels, Belgium): Implications for assessing soil erosion rates. Journal of Geophysical Research 111, D22109.
efp
sctest.efp
data(Nile)
(out <- snh.test(Nile))
plot(out)
data(PagesData) ; snh.test(PagesData)
Run the code above in your browser using DataLab