Description Usage Arguments Value Author(s) References Examples
Aggregates high-dimensional CUSUM statistic series via Double CUSUM approach.
1 | func_dc(z)
|
z |
input data matrix |
cs |
a matrix of CUSUM series |
acs |
a matrix of absolute values of CUSUM series |
res |
pointwise maximum of Double CUSUM statistics |
mat |
a matrix of Double CUSUM statistics |
Haeran Cho
H. Cho (2016) Change-point detection in panel data via double CUSUM statistic. Electronic Journal of Statistics. 10: 2000-2038.
1 2 3 4 5 6 7 | e <- matrix(rnorm(100*100), nrow=100)
f <- matrix(0, nrow=100, ncol=100)
f[, 51:100] <- 1 # t = 50 represents the change-point in the means
x <- f + e
fd <- func_dc(x)
plot(fd$res, type='l'); abline(v=50, col=2) # pointwise maximum of DC statistics
image(t(fd$mat)) # heatmap of DC statistics with x-axis representing the time
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.