Description Usage Arguments Details Value Author(s) References See Also Examples
The standard normal homogeneity test (SNHT) tries to detect a breakpoint concerning the mean value of a time series, usually in combination with a homogeneous reference series. If so, the goal is to detect artificial instationarities introduced by e.g. station relocations or sensor drifts.
1 | applySnht(y, x, method, omit = 0)
|
y |
numeric vector. The candidate series to be tested. |
x |
numeric vector. The reference series (often this series is a composite of nearby observation sites, e.g. from weather stations). |
method |
string. Must be either 'ratio' or 'diff' to specify whether to take ratios or differences between the candidate and reference series. |
omit |
integer. Number of leading and trailing observations to omit when estimating the most probable time point of change. |
If x
is missing, the test is conducted on the candidate series
y
only. Since the SNHT is known to be overly sensitive to detect
breakpoints at the beginning and end of the series, the argument
omit
can be used to exclude the first and last few time steps
while extracting the maximum of the test statistic.
List with entries:
i |
integer. The index of the most probable breakpoint, i.e. the last time step before the break occurs. |
test |
logical vector. Significance of the most probable breakpoint
|
tv |
numeric vector. The test statistic. |
q |
numeric vector. The q series according to |
Original code provided by Pascal H.
Alexanderson, H. (1986). "A homogeneity test applied to precipitation data". International Journal of Climatology.
Khaliq, M. N., and T. B. M. J. Ouarda (2007). "On the critical values of the standard normal homogeneity test (SNHT)". International Journal of Climatology.
testLinearTrend
and testBreakpoint
for other
statistical tests concerning the detection of instationarities in time
series (but without the option to include a reference series).
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.