Package: mcp
Title: Regression with Multiple Change Points
Version: 0.4.0
Date: 2026-10-25
URL: https://lindeloev.github.io/mcp/
BugReports: https://github.com/lindeloev/mcp/issues
Authors@R: 
    person(given = "Jonas Kristoffer",
           family = "Lindeløv",
           role = c("aut", "cre"),
           email = "jonas@lindeloev.dk",
           comment = c(ORCID = "0000-0003-4565-0595"))
Description: 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>.
SystemRequirements: JAGS (>= 4.0.0)
License: GPL (>= 2)
Encoding: UTF-8
Language: en-US
LazyData: true
Depends: R (>= 4.1.0)
Config/testthat/parallel: true
Config/testthat/edition: 3
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
Config/roxygen2/version: 8.1.0
NeedsCompilation: no
Packaged: 2026-10-26 07:45:37 UTC; jonas
Author: Jonas Kristoffer Lindeløv [aut, cre] (ORCID:
    <https://orcid.org/0000-0003-4565-0595>)
Maintainer: Jonas Kristoffer Lindeløv <jonas@lindeloev.dk>
Repository: CRAN
Date/Publication: 2026-10-26 15:20:11 UTC
