Description Usage Arguments Details Value Author(s) References See Also Examples
Computes the test trajectory for the cusum change point test. See Dehling et al. (2013) for details.
1 2 | changerob.cusum(x, var.method = c("window", "acf", "acfextra"),
overlapping = TRUE, shiftcorrect = TRUE, borderN = 10, ...)
|
x |
numeric vector or univariate time series object. |
var.method |
character string defining the estimator of the long run variance, see Details. |
overlapping |
logical value indicating whether block sums should be distinct or overlapping. Only relevant if |
shiftcorrect |
logical value. If |
borderN |
integer value. If |
... |
further arguments passed to the respective internal function for calculation of the asymptotical long run variance. |
The cusum change point test is a nonparametric test against a change in location under short range dependence. The test has high power under Gaussian processes and is able to detect even small changes. The test may suffer under outliers and in case of heavy tailed time series. In this case the Hodges-Lehmann change point test changerob.HL
or the Wilcoxon change point test changerob.wilcox
are preferable. See Dehling et al. (2013) for details. This function computes only the test trajectory, the actual test is executed by the function changerob
.
More details on the different options for calculating the long run variance are given on the help page of the function changerob
.
Numeric vector which contains the whole path of the test statistic.
Roland Fried and Alexander Dürre
Carlstein, E. (1986): The use of subseries values for estimating the variance of a general statistic from a stationary sequence, The Annals of Statistics, vol. 14, 1171–1179, doi: 10.1214/aos/1176350057.
Dehling, H., Fried, R., Garcia, I., Wendler, M. (2013): Change-point detection under dependence based on two-sample U-statistics, preprint. arXiv 1304.2479
Peligrad, M., Shao, Q. (1995): Estimation of the Variance of Partial Sums for rho-Mixing Random Variables, Journal of Multivariate Analysis, vol. 152, 140–157, doi: 10.1006/jmva.1995.1008.
The wrapper function changerob
.
The long run variance is calculated by asymvar.window
, asymvar.acf
or asymvar.acfextra
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.