Title: | Stationarity Test Based on Unsystematic Sub-Sampling |
---|---|
Description: | Performs a test for second-order stationarity of time series based on unsystematic sub-samples. |
Authors: | Haeran Cho [aut, cre] |
Maintainer: | Haeran Cho <[email protected]> |
License: | GPL-2 |
Version: | 0.2.0 |
Built: | 2024-11-07 03:25:48 UTC |
Source: | https://github.com/cran/unsystation |
The package implements a new method for testing the stationarity of time series, where the test statistic is obtained from measuring and maximising the difference in the second-order structure over pairs of randomly drawn intervals.
Package: | unsystation |
Type: | Package |
Version: | 0.2.0 |
Date: | 2018-05-23 |
License: | GPL (>= 2) |
The main routine of the package is unsys.station.test
.
Haeran Cho
Maintainer: Haeran Cho <[email protected]>
H. Cho (2016) A second-order stationarity of time series based on unsystematic sub-samples. Stat, vol. 5, 262-277.
The function implements a stationarity test procedure, where the main statistic is obtained from measuring the difference in the second-order structure over pairs of randomly drawn intervals. Maximising the main statistics after AR Sieve bootstrap-based variance stabilisation, the test statistic is obtained which is reported along with the corresponding pair of intervals and the test outcome.
unsys.station.test(x, M = 2000, sig.lev = 0.05, max.scale = NULL, m = NULL, B = 200, eps = 5, use.all = FALSE, do.parallel = 0)
unsys.station.test(x, M = 2000, sig.lev = 0.05, max.scale = NULL, m = NULL, B = 200, eps = 5, use.all = FALSE, do.parallel = 0)
x |
input time series |
M |
number of randomly drawn intervals |
sig.lev |
significance level between |
max.scale |
number of wavelet scales used for wavelet periodogram computation; |
m |
minimum length of a random interval; |
B |
bootstrap sample size |
eps |
a parameter used for random interval generation, see the supplementary document of Cho (2016) |
use.all |
if |
do.parallel |
number of copies of R running in parallel, if |
intervals |
a pair of intervals corresponding to the test statistic, exhibiting the most distinct second-order behaviour |
test.stat |
test statistic |
test.criterion |
test criterion |
test.res |
if |
H. Cho (2016) A second-order stationarity of time series based on unsystematic sub-samples. Stat, vol. 5, 262-277.
## Not run: x <- rnorm(200) unsys.station.test(x, M=1000) ## End(Not run)
## Not run: x <- rnorm(200) unsys.station.test(x, M=1000) ## End(Not run)