CptNonPar-package | R Documentation |
Implements the nonparametric moving sum procedure for detecting changes in the joint characteristic function (NP-MOJO) for multiple change point detection in multivariate time series. See McGonigle, E. T., Cho, H. (2025) \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/biomet/asaf024")} for description of the NP-MOJO methodology.
Maintainer: Euan T. McGonigle e.t.mcgonigle@soton.ac.uk
Authors:
Haeran Cho haeran.cho@bristol.ac.uk
np.mojo, np.mojo.multilag, multilag.cpts.merge
set.seed(1)
n <- 500
noise <- c(rep(1, 300), rep(0.4, 200)) * stats::arima.sim(model = list(ar = 0.3), n = n)
signal <- c(rep(0, 100), rep(2, 400))
x <- signal + noise
x.c <- np.mojo.multilag(x, G = 83, lags = c(0, 1))
x.c$cpts
x.c$cpt.clusters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.