{
  "_id": "6a326f4c3efcd9bda4387b9d",
  "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",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-17 09:52:21 UTC",
    "User": "root"
  },
  "Author": "Jonas Kristoffer Lindeløv [aut, cre]\n(<https://orcid.org/0000-0003-4565-0595>)",
  "Maintainer": "Jonas Kristoffer Lindeløv <jonas@lindeloev.dk>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2024-03-18 02:30:24 UTC",
  "RemoteUrl": "https://github.com/cran/mcp",
  "RemoteRef": "HEAD",
  "RemoteSha": "ee4040b64222f13dbd68821e0c45badb4dd233d1",
  "MD5sum": "a3283f25234f86dde56d9e4fa913114b",
  "_user": "cran",
  "_type": "src",
  "_file": "mcp_0.3.4.tar.gz",
  "_fileid": "750a32da9b1d1ce09604a9107e389f420fe557b5ed31b4698e33aa7b959fe900",
  "_filesize": 712664,
  "_sha256": "750a32da9b1d1ce09604a9107e389f420fe557b5ed31b4698e33aa7b959fe900",
  "_created": "2026-06-17T09:52:21.000Z",
  "_published": "2026-06-17T09:56:28.789Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81866894273,
      "time": 181,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7691955142"
    },
    {
      "job": 81866894283,
      "time": 206,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7691962429"
    },
    {
      "job": 81866244949,
      "time": 196,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7691881656"
    },
    {
      "job": 81866894263,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7691931892"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27680405585",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/mcp",
  "_commit": {
    "id": "ee4040b64222f13dbd68821e0c45badb4dd233d1",
    "author": "Jonas Kristoffer Lindeløv <jonas@lindeloev.dk>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.3.4\n",
    "time": 1710729024
  },
  "_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"
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "lindeloev",
      "count": 6,
      "uuid": 1439417
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 609,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 449,
    "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": 116,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_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": false,
  "_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"
      ]
    }
  ],
  "_readme": "https://github.com/cran/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.2404.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": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 3.842609239610562,
  "_indexed": false,
  "_nocasepkg": "mcp",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://lindeloev.r-universe.dev/mcp",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-06-17T09:54:33.000Z",
      "distro": "noble",
      "commit": "ee4040b64222f13dbd68821e0c45badb4dd233d1",
      "fileid": "e16d6d19d1ae4e96a14fb1ebcb4d62fafc7ea5da0e7b92c05d18924eda15ad61",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27680405585"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-06-17T09:54:47.000Z",
      "distro": "noble",
      "commit": "ee4040b64222f13dbd68821e0c45badb4dd233d1",
      "fileid": "0e8900bb881372ab70ef2e76edc937ed1a99e09e0039d8fdcf8fb821add4f735",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27680405585"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.4",
      "date": "2026-06-17T09:54:48.000Z",
      "commit": "ee4040b64222f13dbd68821e0c45badb4dd233d1",
      "fileid": "0da8f5064f2a9a6d149dcb7cfecd7438c5bde035ea8355ab18342d87857fae6c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27680405585"
    }
  ]
}