{
  "_id": "6ab79a6d99f7aa8c6aa32bb8",
  "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-09-26 10:06:22 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/d347e4cb94414aa2efee1b56dbaa20ad189c2a37af56d45958b9d7dd3c178a5c",
  "_filesize": 706265,
  "_sha256": "d347e4cb94414aa2efee1b56dbaa20ad189c2a37af56d45958b9d7dd3c178a5c",
  "_expires": "2027-01-04T10:11:54.000Z",
  "_created": "2026-09-26T10:06:22.000Z",
  "_published": "2026-09-26T10:11:56.952Z",
  "_jobs": [
    {
      "job": 108384501485,
      "time": 259,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10904375098"
    },
    {
      "job": 108384501468,
      "time": 186,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10903437996"
    },
    {
      "job": 108384501469,
      "time": 277,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10904385060"
    },
    {
      "job": 108384501484,
      "time": 183,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10904340035"
    },
    {
      "job": 108383915229,
      "time": 255,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10903293065"
    },
    {
      "job": 108384501448,
      "time": 147,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10904320187"
    },
    {
      "job": 108384501478,
      "time": 156,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10904150562"
    },
    {
      "job": 108384501479,
      "time": 166,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10903459621"
    },
    {
      "job": 108384501511,
      "time": 134,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10903304750"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/lindeloev/actions/runs/36234558319",
  "_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": 119,
  "_contributors": [
    {
      "user": "lindeloev",
      "count": 399,
      "uuid": 1439417
    }
  ],
  "_userbio": {
    "uuid": 1439417,
    "type": "user",
    "name": "Jonas Kristoffer Lindeløv",
    "followers": 260
  },
  "_downloads": {
    "count": 743,
    "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": 120,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/mcp.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.9328794578238,
  "_indexed": true,
  "_nocasepkg": "mcp",
  "_universes": [
    "lindeloev"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-09-26T10:09:39.000Z",
      "distro": "resolute",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/afab30a9cc8afb39afd7678bd9b1d30416de66803bc035915c1d8bdbb08e1a2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/36234558319"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-09-26T10:08:47.000Z",
      "distro": "resolute",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/88c1fe2bc1f1e7abcf5f5e605e32336aa5bdddd9ffdad60e3715130fc2afff61",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/36234558319"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-09-26T10:09:56.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/882bf09f275ed5866f757453e83804a4df728753dddce426d5e7df948da757c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/36234558319"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-09-26T10:08:26.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/a65965923504d09dcd38daf5e81d909a065a935bf75cd00d4afbbc9da387182e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/36234558319"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.4",
      "date": "2026-09-26T10:09:11.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/6b8293e05a090898fea08dd65b7883eae3dd6b469aedf8214fd05ded5b7ae0b6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/36234558319"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-09-26T10:07:39.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/ef85fae8e0ce96456d29c627a59ea5fc0a9c2f7bea1a93e491a329d6e88a08d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/36234558319"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-09-26T10:07:49.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/37cf8630c1c7e4463e1ca6139731e8ea51fbae8838dc41ca9df6d6bf63964124",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/36234558319"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-09-26T10:07:36.000Z",
      "commit": "e5b1370879d5be8b45240d86276d9f99bcff4918",
      "fileid": "https://r2.ropensci.org/020a463377ac4e2330ea6ac049f967bad17879a1ea3237a4d3479f571ee58821",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lindeloev/actions/runs/36234558319"
    }
  ]
}