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 posterior predictive intervals are supported - also near the change points. 'mcp' supports hypothesis testing via Savage-Dickey density ratio, posterior contrasts, and PSIS-LOO model comparison. The 'mcp' framework is introduced in Lindeløv (2020) <doi:10.31219/osf.io/fzqxv>.
| Version: |
0.4.0 |
| Depends: |
R (≥ 4.1.0) |
| Imports: |
future (≥ 1.20.0), future.apply (≥ 1.4), lifecycle (≥
1.0.0), rjags (≥ 4.9), coda (≥ 0.19.3), posterior (≥ 1.0.0), loo (≥ 2.1.0), bayesplot (≥ 1.7.0), dplyr (≥ 1.1.1), tidyr (≥ 1.0.0), tibble (≥ 2.1.3), stringr (≥ 1.4.0), ggplot2 (≥
3.2.1), patchwork (≥ 1.0.0), checkmate (≥ 2.3.0), stats, rlang (≥ 1.0.0), nlme |
| Suggests: |
tidybayes (≥ 3.0.0), rstantools (≥ 2.0.0), hexbin, MASS, segmented, lme4, testthat (≥ 3.1.0), vdiffr (≥ 1.0.0), knitr, rmarkdown, withr |
| Enhances: |
brms |
| Published: |
2026-10-26 |
| DOI: |
10.32614/CRAN.package.mcp |
| Author: |
Jonas Kristoffer Lindeløv
[aut, cre] |
| Maintainer: |
Jonas Kristoffer Lindeløv <jonas at lindeloev.dk> |
| BugReports: |
https://github.com/lindeloev/mcp/issues |
| License: |
GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: |
https://lindeloev.github.io/mcp/ |
| NeedsCompilation: |
no |
| SystemRequirements: |
JAGS (>= 4.0.0) |
| Language: |
en-US |
| Citation: |
mcp citation info |
| Materials: |
README, NEWS |
| CRAN checks: |
mcp results |