Detection of Multiple Changes in Slope in Univariate Time-Series

Detects multiple changes in slope using the CPOP dynamic programming approach of Fearnhead, Maidstone, and Letchford (2019) . 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) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cpop")

1.0.9 by Daniel Grose, 4 months ago


Browse source code at https://github.com/cran/cpop


Authors: Daniel Grose [aut, cre] , Paul Fearnhead [aut]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rdpack, Rcpp, ggplot2, mathjaxr, pracma, methods

Depends on crops, pacman

Suggests testthat

Linking to Rcpp


Suggested by ggchangepoint.


See at CRAN