Skip to content

cpop

Detection of Multiple Changes in Slope in Univariate Time-Series

v1.0.8 · Jun 11, 2025 · GPL (>= 2)

Description

Detects multiple changes in slope using the CPOP dynamic programming approach of Fearnhead, Maidstone, and Letchford (2019) <doi:10.1080/10618600.2018.1512868>. This method finds the best continuous piecewise linear fit to data under a criterion that measures fit to data using the residual sum of squares, but penalizes complexity based on an L0 penalty on changes in slope. Further information regarding the use of this package with detailed examples can be found in Fearnhead and Grose (2024) <doi:10.18637/jss.v109.i07>.

Downloads

309

Last 30 days

12906th

821

Last 90 days

4.4K

Last year

Trend: +4.8% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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

Dependency Network

Dependencies Reverse dependencies crops pacman Rdpack Rcpp ggplot2 mathjaxr pracma cpop

Version History

new 1.0.8 Mar 10, 2026
updated 1.0.8 ← 1.0.7 diff Jun 10, 2025
updated 1.0.7 ← 1.0.6 diff May 28, 2024
updated 1.0.6 ← 1.0.4 diff Nov 20, 2022
updated 1.0.4 ← 1.0.3 diff Nov 10, 2022
updated 1.0.3 ← 1.0.0 diff Aug 22, 2022
new 1.0.0 Mar 10, 2022