powered by
Detects change points in time series data using a binary segmentation algorithm.
binary.segmentation(data_M,alpha=.05,power_enhancement=TRUE,M_threshold=0.05)
An nxp matrix representing a times series of length n with p dimensions.
The critical value for the hypothesis testing procedure.
Indicates whether to add a power enhancement term to the test statistic.
Value used as a threshold to estimate temporal dependence by determining how small of a standardized difference is indistinguishable from zero.
The returned value is a list with the following components
The estimated locations of the change points
The p values corresponding to each change point estimate
The power enhancement term reduces type II error but slows the algorithm.
Li, J., Li, L., Xu, M., Zhong, P (2018). Change Point Detection in the Mean of High-Dimensional Time Series Data under Dependence. Manuscript.
# NOT RUN { library(HDcpDetect) HAPT2 <- as.matrix(HAPT[1:35,]) binary.segmentation(data_M=HAPT2,power_enhancement=FALSE) # }
Run the code above in your browser using DataLab