{
  "_id": "6ad35b4a1e212c88a5cf57b6",
  "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-10-17 11:21:00 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>",
  "_user": "mrc-ide",
  "_type": "src",
  "_file": "mcstate_0.9.22.tar.gz",
  "_fileid": "https://r2.ropensci.org/92939ed34ac3e60053b08df8fcb317288b141044d2a059eb5ba23d1605305bfb",
  "_filesize": 3740883,
  "_sha256": "92939ed34ac3e60053b08df8fcb317288b141044d2a059eb5ba23d1605305bfb",
  "_expires": "2027-01-25T11:25:59.000Z",
  "_created": "2026-10-17T11:21:00.000Z",
  "_published": "2026-10-17T11:26:01.862Z",
  "_buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/39028073603",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117383785771,
      "time": 173,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "12099771117"
    },
    {
      "job": 117383785723,
      "time": 231,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12098843907"
    },
    {
      "job": 117383785782,
      "time": 144,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "12099307743"
    },
    {
      "job": 117383785722,
      "time": 191,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12099228215"
    },
    {
      "job": 117382972578,
      "time": 266,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12099770820"
    },
    {
      "job": 117383785732,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12099641504"
    },
    {
      "job": 117383785757,
      "time": 200,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "12099223175"
    },
    {
      "job": 117383785758,
      "time": 201,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "12099183186"
    },
    {
      "job": 117383785756,
      "time": 234,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12099382743"
    }
  ],
  "_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
  },
  "_distro": "resolute",
  "_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",
    "followers": 164,
    "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": 158,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/mcstate.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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.510834443394201,
  "_indexed": true,
  "_nocasepkg": "mcstate",
  "_universes": [
    "mrc-ide",
    "richfitz"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.22",
      "date": "2026-10-17T11:23:02.000Z",
      "distro": "resolute",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "https://r2.ropensci.org/056aab6514d7ae631150e00e99c44c556d68a72e69eb53a740db10e22069f1f5",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/39028073603"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.9.22",
      "date": "2026-10-17T11:23:09.000Z",
      "distro": "resolute",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "https://r2.ropensci.org/e4af3759185bd17a1bbc58d9f5788b707f06f9c3531b4e5e4f655b65316ecb42",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/39028073603"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.22",
      "date": "2026-10-17T11:23:54.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "https://r2.ropensci.org/ca515e57164adacc37abee7745de944dc09d9951bb2af4a6a3b1cce89e331cc4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/39028073603"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.9.22",
      "date": "2026-10-17T11:23:43.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "https://r2.ropensci.org/f681afa84b63eada30143cb12927844487680fd0b1546239317b3dbce7cc9281",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/39028073603"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.22",
      "date": "2026-10-17T11:23:14.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "https://r2.ropensci.org/0016df794c6dffe24233e146e5be9e7a44c93eeed584d213780021f7045a30a1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/39028073603"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.22",
      "date": "2026-10-17T11:22:13.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "https://r2.ropensci.org/46ed49c2f13900dcfe7f7f09a97ad8216cb6df5634735667a3f804f319c009a1",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/39028073603"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.9.22",
      "date": "2026-10-17T11:22:15.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "https://r2.ropensci.org/64bc8c450f358a9dc9b65c1fb431c4ef0159a7932713956c51b7ee0640ad3e3a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/39028073603"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.9.22",
      "date": "2026-10-17T11:22:13.000Z",
      "commit": "3549d64ff9b0d3aac1f9eec435093fc51f9a32cc",
      "fileid": "https://r2.ropensci.org/a9c8f577336c8111ef48de568aa0c5b8b870ba6f4184f29af4245ce27c126726",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/39028073603"
    }
  ]
}