mcp: Regression with Multiple Change Points

Flexible and informed regression with Multiple Change Points. 'mcp' can infer change points in means, variances, autocorrelation structure, and any combination of these, as well as the parameters of the segments in between. All parameters are estimated with uncertainty and prediction intervals are supported - also near the change points. 'mcp' supports hypothesis testing via Savage-Dickey density ratio, posterior contrasts, and cross-validation. 'mcp' is described in Lindeløv (submitted) <doi:10.31219/> and generalizes the approach described in Carlin, Gelfand, & Smith (1992) <doi:10.2307/2347570> and Stephens (1994) <doi:10.2307/2986119>.

Version: 0.3.4
Depends: R (≥ 3.5.0)
Imports: parallel, future (≥ 1.16), future.apply (≥ 1.4), rjags (≥ 4.9), coda (≥ 0.19.3), loo (≥ 2.1.0), bayesplot (≥ 1.7.0), tidybayes (≥ 3.0.0), dplyr (≥ 1.1.1), magrittr (≥ 1.5), tidyr (≥ 1.0.0), tidyselect (≥ 0.2.5), tibble (≥ 2.1.3), stringr (≥ 1.4.0), ggplot2 (≥ 3.2.1), patchwork (≥ 1.0.0), stats, rlang (≥ 0.4.1)
Suggests: hexbin, testthat (≥ 3.1.0), purrr (≥ 0.3.4), knitr, rmarkdown
Published: 2024-03-17
DOI: 10.32614/CRAN.package.mcp
Author: Jonas Kristoffer Lindeløv ORCID iD [aut, cre]
Maintainer: Jonas Kristoffer Lindeløv <jonas at>
License: GPL-2
NeedsCompilation: no
Language: en-US
Citation: mcp citation info
Materials: README NEWS
CRAN checks: mcp results


Reference manual: mcp.pdf


Package source: mcp_0.3.4.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): mcp_0.3.4.tgz, r-oldrel (arm64): mcp_0.3.4.tgz, r-release (x86_64): mcp_0.3.4.tgz, r-oldrel (x86_64): mcp_0.3.4.tgz
Old sources: mcp archive


Please use the canonical form to link to this page.