Learn R Programming

CptNonPar (version 0.3.2)

CptNonPar-package: CptNonPar: Nonparametric Change Point Detection for Multivariate Time Series

Description

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) tools:::Rd_expr_doi("10.1093/biomet/asaf024") for description of the NP-MOJO methodology.

Arguments

Author

Maintainer: Euan T. McGonigle e.t.mcgonigle@soton.ac.uk

Authors:

See Also

np.mojo, np.mojo.multilag, multilag.cpts.merge

Examples

Run this code
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

Run the code above in your browser using DataLab