{
  "_id": "6a4795d22f27a93436c0e614",
  "Package": "mcp",
  "Title": "Regression with Multiple Change Points",
  "Version": "0.3.4",
  "Date": "2024-03-14",
  "URL": "https://lindeloev.github.io/mcp/",
  "BugReports": "https://github.com/lindeloev/mcp/issues",
  "Authors@R": "person(given = \"Jonas Kristoffer\",\nfamily = \"Lindeløv\",\nrole = c(\"aut\", \"cre\"),\nemail = \"jonas@lindeloev.dk\",\ncomment = c(ORCID = \"0000-0003-4565-0595\"))",
  "Description": "Flexible and informed regression with Multiple Change\nPoints. 'mcp' can infer change points in means, variances,\nautocorrelation structure, and any combination of these, as\nwell as the parameters of the segments in between. All\nparameters are estimated with uncertainty and prediction\nintervals are supported - also near the change points. 'mcp'\nsupports hypothesis testing via Savage-Dickey density ratio,\nposterior contrasts, and cross-validation. 'mcp' is described\nin Lindeløv (submitted) <doi:10.31219/osf.io/fzqxv> and\ngeneralizes the approach described in Carlin, Gelfand, & Smith\n(1992) <doi:10.2307/2347570> and Stephens (1994)\n<doi:10.2307/2986119>.",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "RoxygenNote": "7.3.1",
  "Roxygen": "list(markdown = TRUE)",
  "Config/pak/sysreqs": "jags libicu-dev",
  "Repository": "https://lindeloev.r-universe.dev",
  "Date/Publication": "2024-09-29 21:50:21 UTC",
  "RemoteUrl": "https://github.com/lindeloev/mcp",
  "RemoteRef": "HEAD",
  "RemoteSha": "e5b1370879d5be8b45240d86276d9f99bcff4918",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-03 05:50:04 UTC",
    "User": "root"
  },
  "Author": "Jonas Kristoffer Lindeløv [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-4565-0595>)",
  "Maintainer": "Jonas Kristoffer Lindeløv <jonas@lindeloev.dk>",
  "_user": "lindeloev",
  "_type": "src",
  "_file": "mcp_0.3.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/f5e33d7550ef49048b3edd86122dc0a63e840fca30ea40f2ba3250e772586931",
  "_filesize": 711044,
  "_sha256": "f5e33d7550ef49048b3edd86122dc0a63e840fca30ea40f2ba3250e772586931",
  "_expires": "2026-10-11T10:58:26.000Z",
  "_created": "2026-07-03T05:50:04.000Z",
  "_published": "2026-07-03T10:58:26.941Z",
  "_jobs": [
    {
      "job": 84985503220,
      "time": 196,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8058822406"
    },
    {
      "job": 84985502979,
      "time": 245,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8058833898"
    },
    {
      "job": 84985503187,
      "time": 194,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8058814824"
    },
    {
      "job": 84985502998,
      "time": 219,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8058820520"
    },
    {
      "job": 84985502443,
      "time": 185,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8058776014"
    },
    {
      "job": 84985502812,
      "time": 158,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8058813803"
    },
    {
      "job": 84985502972,
      "time": 178,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8058820188"
    },
    {
      "job": 84985503075,
      "time": 161,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8058814613"
    },
    {
      "job": 84985503143,
      "time": 167,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8058815795"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/lindeloev/actions/runs/28641178881",
  "_status": "success",
  "_upstream": "https://github.com/lindeloev/mcp",
  "_commit": {
    "id": "e5b1370879d5be8b45240d86276d9f99bcff4918",
    "author": "Jonas Kristoffer Lindeløv <jonas@lindeloev.dk>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #171 from lindeloev/v0.3.4\n\nMake test pass (v0.3.4)",
    "time": 1727646621
  },
  "_maintainer": {
    "name": "Jonas Kristoffer Lindeløv",
    "email": "jonas@lindeloev.dk",
    "login": "lindeloev",
    "bluesky": "@jonaslindeloev.bsky.social",
    "twitter": "@jonaslindeloev",
    "description": "",
    "uuid": 1439417,
    "orcid": "0000-0003-4565-0595"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "future",
      "version": ">= 1.16",
      "role": "Imports"
    },
    {
      "package": "future.apply",
      "version": ">= 1.4",
      "role": "Imports"
    },
    {
      "package": "rjags",
      "version": ">= 4.9",
      "role": "Imports"
    },
    {
      "package": "coda",
      "version": ">= 0.19.3",
      "role": "Imports"
    },
    {
      "package": "loo",
      "version": ">= 2.1.0",
      "role": "Imports"
    },
    {
      "package": "bayesplot",
      "version": ">= 1.7.0",
      "role": "Imports"
    },
    {
      "package": "tidybayes",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.1",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 1.5",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "version": ">= 0.2.5",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 2.1.3",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "version": ">= 1.4.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.2.1",
      "role": "Imports"
    },
    {
      "package": "patchwork",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.4.1",
      "role": "Imports"
    },
    {
      "package": "hexbin",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.1.0",
      "role": "Suggests"
    },
    {
      "package": "purrr",
      "version": ">= 0.3.4",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "lindeloev",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 118,
  "_contributors": [
    {
      "user": "lindeloev",
      "count": 399,
      "uuid": 1439417
    }
  ],
  "_userbio": {
    "uuid": 1439417,
    "type": "user",
    "name": "Jonas Kristoffer Lindeløv",
    "followers": 257
  },
  "_downloads": {
    "count": 501,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mcp"
  },
  "_mentions": 4,
  "_devurl": "https://github.com/lindeloev/mcp",
  "_pkgdown": "https://lindeloev.github.io/mcp/",
  "_searchresults": 117,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mcp.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/lindeloev/mcp",
  "_realowner": "lindeloev",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2020-01-09"
    },
    {
      "version": "0.3.0",
      "date": "2020-08-03"
    },
    {
      "version": "0.3.1",
      "date": "2021-11-17"
    },
    {
      "version": "0.3.2",
      "date": "2022-02-18"
    },
    {
      "version": "0.3.3",
      "date": "2023-03-22"
    },
    {
      "version": "0.3.4",
      "date": "2024-03-17"
    }
  ],
  "_exports": [
    "bernoulli",
    "criterion",
    "exponential",
    "fixef",
    "get_segment_table",
    "hypothesis",
    "ilogit",
    "is.mcpfit",
    "logit",
    "loo",
    "mcp",
    "mcp_example",
    "negbinomial",
    "phi",
    "plot_pars",
    "pp_check",
    "probit",
    "ranef",
    "sd_to_prec",
    "waic"
  ],
  "_datasets": [
    {
      "name": "demo_fit",
      "title": "Example 'mcpfit' for examples",
      "object": "demo_fit",
      "class": [
        "mcpfit"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "bernoulli",
      "title": "Bernoulli family for mcp",
      "topics": [
        "bernoulli"
      ]
    },
    {
      "page": "criterion",
      "title": "Compute information criteria for model comparison",
      "topics": [
        "criterion",
        "LOO",
        "loo",
        "loo.mcpfit",
        "WAIC",
        "waic",
        "waic.mcpfit"
      ]
    },
    {
      "page": "demo_fit",
      "title": "Example 'mcpfit' for examples",
      "topics": [
        "demo_fit"
      ]
    },
    {
      "page": "exponential",
      "title": "Exponential family for mcp",
      "topics": [
        "exponential"
      ]
    },
    {
      "page": "fitted.mcpfit",
      "title": "Expected Values from the Posterior Predictive Distribution",
      "topics": [
        "fitted",
        "fitted.mcpfit"
      ]
    },
    {
      "page": "hypothesis",
      "title": "Test hypotheses on mcp objects.",
      "topics": [
        "hypothesis",
        "hypothesis.mcpfit"
      ]
    },
    {
      "page": "ilogit",
      "title": "Inverse logit function",
      "topics": [
        "ilogit"
      ]
    },
    {
      "page": "is.mcpfit",
      "title": "Checks if argument is an 'mcpfit' object",
      "topics": [
        "is.mcpfit"
      ]
    },
    {
      "page": "logit",
      "title": "Logit function",
      "topics": [
        "logit"
      ]
    },
    {
      "page": "mcp",
      "title": "Fit Multiple Linear Segments And Their Change Points",
      "topics": [
        "mcp"
      ]
    },
    {
      "page": "mcp_example",
      "title": "Get example models and data",
      "topics": [
        "mcp_example"
      ]
    },
    {
      "page": "mcpfit-class",
      "title": "Class 'mcpfit' of models fitted with the 'mcp' package",
      "topics": [
        "mcpfit",
        "mcpfit-class"
      ]
    },
    {
      "page": "negbinomial",
      "title": "Negative binomial for mcp",
      "topics": [
        "negbinomial"
      ]
    },
    {
      "page": "phi",
      "title": "Inverse probit function",
      "topics": [
        "phi"
      ]
    },
    {
      "page": "plot_pars",
      "title": "Plot individual parameters",
      "topics": [
        "plot_pars"
      ]
    },
    {
      "page": "plot.mcpfit",
      "title": "Plot full fits",
      "topics": [
        "plot",
        "plot.mcpfit"
      ]
    },
    {
      "page": "pp_check",
      "title": "Posterior Predictive Checks For Mcpfit Objects",
      "topics": [
        "pp_check",
        "pp_check.mcpfit"
      ]
    },
    {
      "page": "predict.mcpfit",
      "title": "Samples from the Posterior Predictive Distribution",
      "topics": [
        "predict",
        "predict.mcpfit"
      ]
    },
    {
      "page": "print.mcplist",
      "title": "Print mcplist",
      "topics": [
        "print.mcplist"
      ]
    },
    {
      "page": "print.mcptext",
      "title": "Nice printing texts",
      "topics": [
        "print.mcptext"
      ]
    },
    {
      "page": "probit",
      "title": "Probit function",
      "topics": [
        "probit"
      ]
    },
    {
      "page": "residuals.mcpfit",
      "title": "Compute Residuals From Mcpfit Objects",
      "topics": [
        "resid",
        "resid.mcpfit",
        "residuals",
        "residuals.mcpfit"
      ]
    },
    {
      "page": "sd_to_prec",
      "title": "Transform a prior from SD to precision.",
      "topics": [
        "sd_to_prec"
      ]
    },
    {
      "page": "summary.mcpfit",
      "title": "Summarise mcpfit objects",
      "topics": [
        "fixed.effects",
        "fixef",
        "fixef.mcpfit",
        "print",
        "print.mcpfit",
        "random.effects",
        "ranef",
        "ranef.mcpfit",
        "summary",
        "summary.mcpfit"
      ]
    }
  ],
  "_pkglogo": "https://github.com/lindeloev/mcp/raw/docs/man/figures/logo.png",
  "_readme": "https://github.com/lindeloev/mcp/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "arrayhelpers",
    "backports",
    "bayesplot",
    "checkmate",
    "cli",
    "coda",
    "codetools",
    "cpp11",
    "digest",
    "distributional",
    "dplyr",
    "farver",
    "future",
    "future.apply",
    "generics",
    "ggdist",
    "ggplot2",
    "ggridges",
    "globals",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "loo",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "parallelly",
    "patchwork",
    "pillar",
    "pkgconfig",
    "plyr",
    "posterior",
    "purrr",
    "quadprog",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rjags",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "svUnit",
    "tensorA",
    "tibble",
    "tidybayes",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libjags",
      "package": "jags",
      "headers": "jags",
      "source": "jags",
      "version": "4.3.2-2.2604.0",
      "name": "jags",
      "homepage": "https://mcmc-jags.sourceforge.io",
      "description": "Just Another Gibbs Sampler for Bayesian MCMC - binary"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 6.918219119435931,
  "_indexed": true,
  "_nocasepkg": "mcp",
  "_universes": [
    "lindeloev"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-07-03T05:52:35.000Z",
      "distro": "resolute",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/e6a9f533088698fa7d2b247335adbf039fa2b544feae78a534f42cb1b489a5ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/28641178881"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-07-03T05:53:05.000Z",
      "distro": "resolute",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/bceb2f5374d9c6e4c0802af1675c6007bb6c48e032d0cb2f3608fcab4d7a8888",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/28641178881"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-07-03T05:52:19.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/138184062d4c51cc0f1d01af50bf3b4476646234a32868f5d7823a0ae60b0b79",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/28641178881"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-07-03T05:52:35.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/d6b720351a16eabccfd9fe9c35f0a5ba428e65daa2564c37b25ae7d10cdde230",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/28641178881"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.4",
      "date": "2026-07-03T05:53:03.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/c476aef2b6486a94f7ebc3bea773d71bf7c04e8c89977f73d23cd9b9aa0370c1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/28641178881"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-07-03T05:51:42.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/6648fe8662cfb4c49316c4ee547a18a378205f4e06344d1df3e3b61d42aed3d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/28641178881"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-07-03T05:51:30.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/4c0a6a557ea9b3d87bc10d0adb525abd5514169cf7a5977c0ac80c50a0bf5a7e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/28641178881"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-07-03T05:51:33.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/c1ef8158821bc870beb2fd5b34e56bb286039f560524bf1b74b89f1b63ba405d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/28641178881"
    }
  ]
}