Skip to content

OLCPM

Online Change Point Detection for Matrix-Valued Time Series

v0.1.2 · May 30, 2024 · GPL-2 | GPL-3

Description

We provide two algorithms for monitoring change points with online matrix-valued time series, under the assumption of a two-way factor structure. The algorithms are based on different calculations of the second moment matrices. One is based on stacking the columns of matrix observations, while another is by a more delicate projected approach. A well-known fact is that, in the presence of a change point, a factor model can be rewritten as a model with a larger number of common factors. In turn, this entails that, in the presence of a change point, the number of spiked eigenvalues in the second moment matrix of the data increases. Based on this, we propose two families of procedures - one based on the fluctuations of partial sums, and one based on extreme value theory - to monitor whether the first non-spiked eigenvalue diverges after a point in time in the monitoring horizon, thereby indicating the presence of a change point. This package also provides some simple functions for detecting and removing outliers, imputing missing entries and testing moments. See more details in He et al. (2021)<doi:10.48550/arXiv.2112.13479>.

Downloads

CRAN

541

Last 30 days

7051st

1.7K

Last 90 days

6.6K

Last year

Trend: -3.2% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

24

Last 90 days

93

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

2

Last 7 days

17

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

3,279

Files

27

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,762 (53.7%)Docs 1,517 (46.3%)

API

Exported functions

20

Internal functions

0

Recent export changes

v0.1.1+20 ITP_noproj, ITP_proj, KSTP +17 more  −1 pattern:^[[:alpha:]]+
v0.1.0+1 pattern:^[[:alpha:]]+

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

20%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL-2 | GPL-3

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2023-02-27

Latest release

2024-05-30

Avg cadence

229 days

Cold removal rate

100%

Dep drift

0

LOC over versions

v0.1.0: 870 LOCv0.1.1: 3,266 LOCv0.1.2: 3,279 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies LaplacesDemon RSpectra OLCPM

Version History

4 tracked
new 0.1.2 Mar 10, 2026
updated 0.1.2 ← 0.1.1 diff May 29, 2024
updated 0.1.1 ← 0.1.0 diff Feb 4, 2024
new 0.1.0 Feb 26, 2023