{
  "_id": "6a2bd1d6ba420f1ac0cbcbab",
  "Package": "mcstate",
  "Title": "Monte Carlo Methods for State Space Models",
  "Version": "0.9.22",
  "Authors@R": "c(person(\"Rich\", \"FitzJohn\", role = c(\"aut\", \"cre\"),\nemail = \"rich.fitzjohn@gmail.com\"),\nperson(\"Marc\", \"Baguelin\", role = \"aut\"),\nperson(\"Edward\", \"Knock\", role = \"aut\"),\nperson(\"Lilith\", \"Whittles\", role = \"aut\"),\nperson(\"John\", \"Lees\", role = \"aut\"),\nperson(\"Raphael\", \"Sonabend\", role = \"aut\"),\nperson(\"Imperial College of Science, Technology and Medicine\",\nrole = \"cph\"))",
  "Description": "Implements Monte Carlo methods for state-space models such\nas 'SIR' models in epidemiology. Particle MCMC (pmcmc) and SMC2\nmethods are planned. This package is particularly designed to\nwork with odin/dust models, but we will see how general it\nbecomes.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "URL": "https://github.com/mrc-ide/mcstate",
  "BugReports": "https://github.com/mrc-ide/mcstate/issues",
  "RoxygenNote": "7.3.1",
  "Roxygen": "list(markdown = TRUE)",
  "Remotes": [
    "mrc-ide/dust",
    "mrc-ide/odin.dust"
  ],
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libuv1-dev",
  "Repository": "https://mrc-ide.r-universe.dev",
  "Date/Publication": "2024-07-01 13:22:09 UTC",
  "RemoteUrl": "https://github.com/mrc-ide/mcstate",
  "RemoteRef": "master",
  "RemoteSha": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-12 09:26:04 UTC",
    "User": "root"
  },
  "Author": "Rich FitzJohn [aut, cre],\nMarc Baguelin [aut],\nEdward Knock [aut],\nLilith Whittles [aut],\nJohn Lees [aut],\nRaphael Sonabend [aut],\nImperial College of Science, Technology and Medicine [cph]",
  "Maintainer": "Rich FitzJohn <rich.fitzjohn@gmail.com>",
  "MD5sum": "33fd6051e364ed11d70f4b31b104c8ff",
  "_user": "mrc-ide",
  "_type": "src",
  "_file": "mcstate_0.9.22.tar.gz",
  "_fileid": "c4625c0a850784e3bb72f5a0de22f13c63abf4f090fa5da16b662c8dd26413e8",
  "_filesize": 3696424,
  "_sha256": "c4625c0a850784e3bb72f5a0de22f13c63abf4f090fa5da16b662c8dd26413e8",
  "_created": "2026-06-12T09:26:04.000Z",
  "_published": "2026-06-12T09:31:02.622Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80998699558,
      "time": 235,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7587990316"
    },
    {
      "job": 80998699551,
      "time": 258,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7587998788"
    },
    {
      "job": 80998699559,
      "time": 158,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7587964455"
    },
    {
      "job": 80998699602,
      "time": 167,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7587967409"
    },
    {
      "job": 80997871780,
      "time": 301,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7587908825"
    },
    {
      "job": 80998699569,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7587948175"
    },
    {
      "job": 80998699596,
      "time": 194,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7587976981"
    },
    {
      "job": 80998699560,
      "time": 235,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7587990491"
    },
    {
      "job": 80998699567,
      "time": 255,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7587997271"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27406796148",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mrc-ide/mcstate",
  "_commit": {
    "id": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
    "author": "Rich FitzJohn <rich.fitzjohn@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #241 from mrc-ide/fix-adaptive-nested\n\nFix adaptive nested",
    "time": 1719840129
  },
  "_maintainer": {
    "name": "Rich FitzJohn",
    "email": "rich.fitzjohn@gmail.com",
    "login": "richfitz",
    "mastodon": "@richfitz@fosstodon.org",
    "description": "",
    "uuid": 1558093
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "callr",
      "version": ">= 3.7.0",
      "role": "Imports"
    },
    {
      "package": "dust",
      "version": ">= 0.13.12",
      "role": "Imports"
    },
    {
      "package": "processx",
      "role": "Imports"
    },
    {
      "package": "progress",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "brio",
      "role": "Suggests"
    },
    {
      "package": "coda",
      "role": "Suggests"
    },
    {
      "package": "decor",
      "role": "Suggests"
    },
    {
      "package": "fs",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "mockery",
      "role": "Suggests"
    },
    {
      "package": "mvtnorm",
      "role": "Suggests"
    },
    {
      "package": "odin.dust",
      "version": ">= 0.3.0",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "mrc-ide",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 19,
  "_contributors": [
    {
      "user": "richfitz",
      "count": 812,
      "uuid": 1558093
    },
    {
      "user": "raphaels1",
      "count": 122,
      "uuid": 25639974
    },
    {
      "user": "johnlees",
      "count": 120,
      "uuid": 6331837
    },
    {
      "user": "edknock",
      "count": 106,
      "uuid": 47318334
    },
    {
      "user": "lwhittles",
      "count": 34,
      "uuid": 12626690
    },
    {
      "user": "hillalex",
      "count": 25,
      "uuid": 6736820
    },
    {
      "user": "mjomaba",
      "count": 13,
      "uuid": 6517405
    },
    {
      "user": "r-ash",
      "count": 6,
      "uuid": 39248272
    },
    {
      "user": "annecori",
      "count": 2,
      "uuid": 6973431
    },
    {
      "user": "pabloperguz",
      "count": 2,
      "uuid": 32740088
    }
  ],
  "_userbio": {
    "uuid": 25453642,
    "type": "organization",
    "name": "MRC Centre for Global Infectious Disease Analysis",
    "description": "MRC Centre hosted within the Department of Infectious Disease Epidemiology at Imperial College London"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mcstate"
  },
  "_devurl": "https://github.com/mrc-ide/mcstate",
  "_searchresults": 132,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mcstate.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "adaptive_proposal_control",
    "array_bind",
    "array_drop",
    "array_flatten",
    "array_reshape",
    "if2",
    "if2_control",
    "if2_parameter",
    "if2_parameters",
    "if2_sample",
    "multistage_epoch",
    "multistage_parameters",
    "particle_deterministic",
    "particle_filter",
    "particle_filter_data",
    "particle_filter_initial",
    "pmcmc",
    "pmcmc_chains_cleanup",
    "pmcmc_chains_collect",
    "pmcmc_chains_prepare",
    "pmcmc_chains_run",
    "pmcmc_combine",
    "pmcmc_control",
    "pmcmc_parameter",
    "pmcmc_parameters",
    "pmcmc_parameters_nested",
    "pmcmc_predict",
    "pmcmc_sample",
    "pmcmc_thin",
    "pmcmc_varied_parameter",
    "smc2",
    "smc2_control",
    "smc2_parameter",
    "smc2_parameters"
  ],
  "_help": [
    {
      "page": "adaptive_proposal_control",
      "title": "Adaptive proposal control",
      "topics": [
        "adaptive_proposal_control"
      ]
    },
    {
      "page": "array_bind",
      "title": "Bind arrays",
      "topics": [
        "array_bind"
      ]
    },
    {
      "page": "array_drop",
      "title": "Drop specific array dimensions",
      "topics": [
        "array_drop"
      ]
    },
    {
      "page": "array_flatten",
      "title": "Flatten array dimensions",
      "topics": [
        "array_flatten"
      ]
    },
    {
      "page": "array_reshape",
      "title": "Rehape an array dimension",
      "topics": [
        "array_reshape"
      ]
    },
    {
      "page": "if2",
      "title": "Run iterated filtering (IF2 algorithm)",
      "topics": [
        "if2",
        "if2_sample"
      ]
    },
    {
      "page": "if2_control",
      "title": "Control for IF2",
      "topics": [
        "if2_control"
      ]
    },
    {
      "page": "if2_parameter",
      "title": "Describe single IF2 parameter",
      "topics": [
        "if2_parameter"
      ]
    },
    {
      "page": "if2_parameters",
      "title": "if2_parameters",
      "topics": [
        "if2_parameters"
      ]
    },
    {
      "page": "multistage_epoch",
      "title": "Multistage filter epoch",
      "topics": [
        "multistage_epoch"
      ]
    },
    {
      "page": "multistage_parameters",
      "title": "Multistage filter parameters",
      "topics": [
        "multistage_parameters"
      ]
    },
    {
      "page": "particle_deterministic",
      "title": "Deterministic particle likelihood",
      "topics": [
        "particle_deterministic"
      ]
    },
    {
      "page": "particle_deterministic_state",
      "title": "Deterministic particle state",
      "topics": [
        "particle_deterministic_state"
      ]
    },
    {
      "page": "particle_filter",
      "title": "Particle filter",
      "topics": [
        "particle_filter"
      ]
    },
    {
      "page": "particle_filter_data",
      "title": "Prepare data for use with particle filter",
      "topics": [
        "particle_filter_data"
      ]
    },
    {
      "page": "particle_filter_initial",
      "title": "Create restart initial state",
      "topics": [
        "particle_filter_initial"
      ]
    },
    {
      "page": "particle_filter_state",
      "title": "Particle filter state",
      "topics": [
        "particle_filter_state"
      ]
    },
    {
      "page": "pmcmc",
      "title": "Run a pmcmc sampler",
      "topics": [
        "pmcmc"
      ]
    },
    {
      "page": "pmcmc_chains",
      "title": "pMCMC with manual chain scheduling",
      "topics": [
        "pmcmc_chains_cleanup",
        "pmcmc_chains_collect",
        "pmcmc_chains_prepare",
        "pmcmc_chains_run"
      ]
    },
    {
      "page": "pmcmc_combine",
      "title": "Combine pmcmc samples",
      "topics": [
        "pmcmc_combine"
      ]
    },
    {
      "page": "pmcmc_control",
      "title": "Control for the pmcmc",
      "topics": [
        "pmcmc_control"
      ]
    },
    {
      "page": "pmcmc_parameter",
      "title": "Describe single pmcmc parameter",
      "topics": [
        "pmcmc_parameter"
      ]
    },
    {
      "page": "pmcmc_parameters",
      "title": "pmcmc_parameters",
      "topics": [
        "pmcmc_parameters"
      ]
    },
    {
      "page": "pmcmc_parameters_nested",
      "title": "pmcmc_parameters_nested",
      "topics": [
        "pmcmc_parameters_nested"
      ]
    },
    {
      "page": "pmcmc_predict",
      "title": "Run predictions from PMCMC",
      "topics": [
        "pmcmc_predict"
      ]
    },
    {
      "page": "pmcmc_thin",
      "title": "Thin a pmcmc chain",
      "topics": [
        "pmcmc_sample",
        "pmcmc_thin"
      ]
    },
    {
      "page": "pmcmc_varied_parameter",
      "title": "Describe varying pmcmc parameter",
      "topics": [
        "pmcmc_varied_parameter"
      ]
    },
    {
      "page": "smc2",
      "title": "Run SMC^2",
      "topics": [
        "smc2"
      ]
    },
    {
      "page": "smc2_control",
      "title": "Control for SMC2",
      "topics": [
        "smc2_control"
      ]
    },
    {
      "page": "smc2_parameter",
      "title": "Describe single pmcmc parameter",
      "topics": [
        "smc2_parameter"
      ]
    },
    {
      "page": "smc2_parameters",
      "title": "smc2_parameters",
      "topics": [
        "smc2_parameters"
      ]
    }
  ],
  "_pkglogo": "https://github.com/mrc-ide/mcstate/raw/master/man/figures/logo.png",
  "_readme": "https://github.com/mrc-ide/mcstate/raw/master/README.md",
  "_rundeps": [
    "callr",
    "cli",
    "cpp11",
    "crayon",
    "desc",
    "dust",
    "fs",
    "glue",
    "hms",
    "lifecycle",
    "otel",
    "pkgbuild",
    "pkgconfig",
    "pkgload",
    "prettyunits",
    "processx",
    "progress",
    "ps",
    "R6",
    "rlang",
    "rprojroot",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "deterministic.Rmd",
      "filename": "deterministic.html",
      "title": "Deterministic models",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2021-08-09 16:17:01",
      "modified": "2022-01-28 15:30:57",
      "commits": 2
    },
    {
      "source": "continuous.Rmd",
      "filename": "continuous.html",
      "title": "Fitting a continuous-time model",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Using MCMC to infer parameters"
      ],
      "created": "2023-09-12 15:47:45",
      "modified": "2023-09-12 15:47:45",
      "commits": 1
    },
    {
      "source": "if2.Rmd",
      "filename": "if2.html",
      "title": "Inference with iterated filtering",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setting up an IF2 run",
        "Running the IF2 algorithm"
      ],
      "created": "2021-05-19 10:44:43",
      "modified": "2022-01-28 15:30:57",
      "commits": 2
    },
    {
      "source": "nested_sir_models.Rmd",
      "filename": "nested_sir_models.html",
      "title": "Nested SIR Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Model data",
        "Comparison, model and particle filter",
        "Nested parameters",
        "pMCMC and Visualisations"
      ],
      "created": "2021-02-24 17:22:13",
      "modified": "2022-01-28 15:30:57",
      "commits": 4
    },
    {
      "source": "parallelisation.Rmd",
      "filename": "parallelisation.html",
      "title": "Parallelisation of inference",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Within-model parallelism",
        "Between-chain parallelism",
        "Considerations"
      ],
      "created": "2020-10-26 14:15:58",
      "modified": "2022-01-28 15:30:57",
      "commits": 7
    },
    {
      "source": "restart.Rmd",
      "filename": "restart.html",
      "title": "Restarting pMCMC",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setup",
        "All-in-one",
        "Restarting"
      ],
      "created": "2021-01-08 11:50:45",
      "modified": "2022-11-10 08:40:56",
      "commits": 7
    },
    {
      "source": "sir_models.Rmd",
      "filename": "sir_models.html",
      "title": "SIR models with odin, dust and mcstate",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Stochastic SIR model definition",
        "Inferring parameters with mcstate",
        "Model data",
        "Defining the comparison function",
        "Inferring parameters",
        "Using MCMC to infer parameters",
        "Tuning the pMCMC",
        "Running predictions",
        "Fitting to multiple datastreams"
      ],
      "created": "2020-10-26 14:15:58",
      "modified": "2022-11-10 08:40:56",
      "commits": 11
    },
    {
      "source": "kalman.Rmd",
      "filename": "kalman.html",
      "title": "Validation of SMC using a Kalman filter",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2020-10-26 14:15:58",
      "modified": "2022-11-10 08:40:56",
      "commits": 7
    }
  ],
  "_score": 7.432751287645629,
  "_indexed": true,
  "_nocasepkg": "mcstate",
  "_universes": [
    "mrc-ide",
    "richfitz"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.22",
      "date": "2026-06-12T09:28:21.000Z",
      "distro": "noble",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "739ccecfe540e0d7b1c749f35b24763d0e32bcf2f72ed2396c7f08373acf7e04",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27406796148"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.9.22",
      "date": "2026-06-12T09:28:30.000Z",
      "distro": "noble",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "972eb167a7f9faae481b1df9322ebee60c9f801de711aaa2edce6cb34a9eafec",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27406796148"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.22",
      "date": "2026-06-12T09:27:33.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "e602ee45b1f3af8816f5628c70fe60f795514ef4742c41bcd1841b9fc11553ba",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27406796148"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.9.22",
      "date": "2026-06-12T09:27:45.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "a197ff5e913cc1fe4eea04e5b7a609f3fe939407311843ce7f935f74fb9bb926",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27406796148"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.22",
      "date": "2026-06-12T09:28:14.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "f95effa6c4ebce1e2e20ed67cf6d009640cdc298482113a5068639c5dd586b93",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27406796148"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.22",
      "date": "2026-06-12T09:27:22.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "01dca5fc49d06321a51307a8ad7d9420f3778311c680f95da530629128f6725c",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27406796148"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.9.22",
      "date": "2026-06-12T09:27:16.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "1e89763488f50d358edc4a1faf8522a174646f3a76bda2922df1e83dd9ad8afd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27406796148"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.9.22",
      "date": "2026-06-12T09:27:32.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "bdf4b8f18f9d139303a42ea59f644812a281e3cbad072fa6ae60b327154f214f",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27406796148"
    }
  ]
}