{
  "_id": "6a1f203bb401979e73420338",
  "Package": "threemc",
  "Title": "(Matt's) Multi-Level Model of Male Circumcision in Sub-Saharan\nAfrica",
  "Version": "0.1.45",
  "Authors@R": "c(person(family  = \"Thomas\", \ngive    = \"Matthew\",\nrole    = \"aut\",\nemail   = \"m.l.thomas@exeter.ac.uk\",\ncomment = c(ORCID = \"0000-0001-8171-1936\")),\nperson(family  = \"Imai-Eaton\",\ngiven   = \"Jeffrey\",\nrole    = \"aut\",\nemail   = \"jeffrey.eaton@imperial.ac.uk\",\ncomment = c(ORCID = \"0000-0001-7728-728X\")),\nperson(family  = \"O'Toole\",\ngiven   = \"Patrick\",\nrole    = \"cre\",\nemail   = \"potoole@imperial.ac.uk\",\ncomment = c(ORCID = \"0000-0002-1652-6555\")),\nperson(given = \"Imperial College of Science, Technology and\nMedicine\",\nrole  = \"cph\"))",
  "Description": "Functions and datasets to support, and extend to other\nSub-Saharan African countries, Thomas, M. et. al., 2021, A\nmulti-level model for estimating region-age-time-type specific\nmale circumcision coverage from household survey and health\nsystem data in South Africa, <arXiv:2108.091422>.",
  "LazyData": "true",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "URL": "https://github.com/mrc-ide/threemc",
  "BugReports": "https://github.com/mrc-ide/threemc/issues",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibicu-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://mrc-ide.r-universe.dev",
  "Date/Publication": "2024-02-06 15:55:02 UTC",
  "RemoteUrl": "https://github.com/mrc-ide/threemc",
  "RemoteRef": "master",
  "RemoteSha": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-16 07:07:59 UTC",
    "User": "root"
  },
  "Author": "Matthew Thomas [aut] (ORCID: <https://orcid.org/0000-0001-8171-1936>),\nJeffrey Imai-Eaton [aut] (ORCID:\n<https://orcid.org/0000-0001-7728-728X>),\nPatrick O'Toole [cre] (ORCID: <https://orcid.org/0000-0002-1652-6555>),\nImperial College of Science, Technology and Medicine [cph]",
  "Maintainer": "Patrick O'Toole <potoole@imperial.ac.uk>",
  "MD5sum": "ba77b1c0d1eb888598a212db4f075a5a",
  "_user": "mrc-ide",
  "_type": "src",
  "_file": "threemc_0.1.45.tar.gz",
  "_fileid": "83bf3c7a9c1299375595e66619feb781d7e2260982979b1ac7b0fde057a51678",
  "_filesize": 6624601,
  "_sha256": "83bf3c7a9c1299375595e66619feb781d7e2260982979b1ac7b0fde057a51678",
  "_created": "2026-05-16T07:07:59.000Z",
  "_published": "2026-06-02T18:26:03.030Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79142716010,
      "time": 1125,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7031660949"
    },
    {
      "job": 79142715775,
      "time": 1078,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7031655583"
    },
    {
      "job": 79142715950,
      "time": 1064,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7031654053"
    },
    {
      "job": 79142715746,
      "time": 1121,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7031660570"
    },
    {
      "job": 79142716136,
      "time": 566,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7031600919"
    },
    {
      "job": 79142715727,
      "time": 1070,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7031654755"
    },
    {
      "job": 79142715820,
      "time": 768,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7031621899"
    },
    {
      "job": 79142715761,
      "time": 1149,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7031663432"
    },
    {
      "job": 79142715113,
      "time": 1950,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7031542123"
    },
    {
      "job": 79142714651,
      "time": 162,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79142715928,
      "time": 2438,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7031800595"
    },
    {
      "job": 79142715851,
      "time": 2419,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7031798590"
    },
    {
      "job": 79142715924,
      "time": 1975,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7031755041"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403",
  "_status": "failure",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mrc-ide/threemc",
  "_commit": {
    "id": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
    "author": "paddy7wb <paddy7wb@gmail.com>",
    "committer": "paddy7wb <paddy7wb@gmail.com>",
    "message": "Model MOZ at area level 3, not 2\n",
    "time": 1707234902
  },
  "_maintainer": {
    "name": "Patrick OToole",
    "email": "potoole@imperial.ac.uk",
    "orcid": "0000-0002-1652-6555"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "TMB",
      "version": ">= 1.7.22",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.9.1",
      "role": "LinkingTo"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.7",
      "role": "Imports"
    },
    {
      "package": "sf",
      "version": ">= 1.0.5",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.4.12",
      "role": "Imports"
    },
    {
      "package": "TMB",
      "version": ">= 1.7.22",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.3-4",
      "role": "Imports"
    },
    {
      "package": "spdep",
      "version": ">= 1.1.13",
      "role": "Imports"
    },
    {
      "package": "splines",
      "version": ">= 3.6.2",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.1.4",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.14.2",
      "role": "Imports"
    },
    {
      "package": "R.utils",
      "version": ">= 2.11.0",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "version": ">= 1.8-38",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "version": ">= 1.4.0",
      "role": "Imports"
    },
    {
      "package": "methods",
      "version": ">= 3.6.2",
      "role": "Imports"
    },
    {
      "package": "loo",
      "version": ">= 2.5.1",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "version": ">= 1.1-3",
      "role": "Imports"
    },
    {
      "package": "scoringutils",
      "version": ">= 1.0.1",
      "role": "Imports"
    },
    {
      "package": "covr",
      "version": ">= 3.5.1",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "version": ">= 1.3.1",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "version": ">= 1.40",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "version": ">= 2.18",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "version": ">= 1.2.1",
      "role": "Suggests"
    },
    {
      "package": "goodpractice",
      "version": ">= 1.0.4",
      "role": "Suggests"
    }
  ],
  "_owner": "mrc-ide",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "potoole7",
      "count": 709,
      "uuid": 77847248
    },
    {
      "user": "matthewllthomas",
      "count": 16,
      "uuid": 19608881
    },
    {
      "user": "jeffeaton",
      "count": 7,
      "uuid": 7427899
    },
    {
      "user": "r-ash",
      "count": 2,
      "uuid": 39248272
    }
  ],
  "_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/threemc"
  },
  "_devurl": "https://github.com/mrc-ide/threemc",
  "_searchresults": 16,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/threemc.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "compare_predictions",
    "compute_quantiles",
    "create_dirs_r",
    "create_shell_dataset",
    "find_circ_type",
    "minimise_fit_obj",
    "normalise_weights_kish",
    "prepare_survey_data",
    "read_circ_data",
    "reassign_survey_level",
    "spread_areas",
    "survey_points_dmppt2_convert_convention",
    "threemc_aggregate",
    "threemc_empirical_rates",
    "threemc_fit_model",
    "threemc_initial_pars",
    "threemc_ppc",
    "threemc_ppc2",
    "threemc_prepare_model_data"
  ],
  "_datasets": [
    {
      "name": "datapack_psnu_area_level",
      "title": "PSNU Area Levels for SSA",
      "object": "datapack_psnu_area_level",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "iso3",
        "psnu_area_level"
      ],
      "rows": 29,
      "table": true,
      "tojson": true
    },
    {
      "name": "demo_areas",
      "title": "Malawi shapefiles",
      "object": "demo_areas",
      "class": [
        "sf",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "iso3",
        "area_id",
        "area_name",
        "parent_area_id",
        "area_level",
        "area_level_label",
        "area_sort_order",
        "center_x",
        "center_y",
        "geometry"
      ],
      "rows": 532,
      "table": false,
      "tojson": true
    },
    {
      "name": "demo_populations",
      "title": "Malawi populations",
      "object": "demo_populations",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "iso3",
        "area_id",
        "area_level",
        "area_name",
        "year",
        "age",
        "population"
      ],
      "rows": 176418,
      "table": true,
      "tojson": true
    },
    {
      "name": "demo_survey_circumcision",
      "title": "Malawi surveys",
      "object": "demo_survey_circumcision",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "iso3",
        "survey_id",
        "area_id",
        "area_level",
        "sex",
        "age",
        "dob_cmc",
        "interview_cmc",
        "indweight",
        "circ_status",
        "circ_age",
        "circ_who",
        "circ_where"
      ],
      "rows": 29153,
      "table": true,
      "tojson": true
    },
    {
      "name": "esa_wca_regions",
      "title": "WCA - ESA key for Sub-Saharan African countries",
      "object": "esa_wca_regions",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "iso3",
        "region",
        "four_region"
      ],
      "rows": 38,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "compute_quantiles",
      "title": "Calculate Quantiles for Rates and Cumulative Hazard",
      "topics": [
        "compute_quantiles"
      ]
    },
    {
      "page": "create_dirs_r",
      "title": "Recursively Create Missing Directories",
      "topics": [
        "create_dirs_r"
      ]
    },
    {
      "page": "create_shell_dataset",
      "title": "Create Shell Dataset for Estimating Empirical Circumcision Rate",
      "topics": [
        "create_shell_dataset"
      ]
    },
    {
      "page": "datapack_psnu_area_level",
      "title": "PSNU Area Levels for SSA",
      "topics": [
        "datapack_psnu_area_level"
      ]
    },
    {
      "page": "demo_areas",
      "title": "Malawi shapefiles",
      "topics": [
        "demo_areas"
      ]
    },
    {
      "page": "demo_populations",
      "title": "Malawi populations",
      "topics": [
        "demo_populations"
      ]
    },
    {
      "page": "demo_survey_circumcision",
      "title": "Malawi surveys",
      "topics": [
        "demo_survey_circumcision"
      ]
    },
    {
      "page": "esa_wca_regions",
      "title": "WCA - ESA key for Sub-Saharan African countries",
      "topics": [
        "esa_wca_regions"
      ]
    },
    {
      "page": "minimise_fit_obj",
      "title": "Minimise Fit Object Size",
      "topics": [
        "minimise_fit_obj"
      ]
    },
    {
      "page": "prepare_survey_data",
      "title": "Prepare Survey Data",
      "topics": [
        "prepare_survey_data"
      ]
    },
    {
      "page": "read_circ_data",
      "title": "Function to read in Circumcision Data",
      "topics": [
        "read_circ_data"
      ]
    },
    {
      "page": "survey_points_dmppt2_convert_convention",
      "title": "Create data frame of all ages within provided age group. Convert survey coverage points & dmppt2 data to match convention of aggregated results.",
      "topics": [
        "survey_points_dmppt2_convert_convention"
      ]
    },
    {
      "page": "threemc_aggregate",
      "title": "Produce Population Weighted Aggregated Samples for All Area Levels",
      "topics": [
        "threemc_aggregate"
      ]
    },
    {
      "page": "threemc_empirical_rates",
      "title": "Use model shell dataset to estimate empirical circumcision rates",
      "topics": [
        "threemc_empirical_rates"
      ]
    },
    {
      "page": "threemc_fit_model",
      "title": "Produce TMB model fit with sample, or re-sample from existing optimised model fit.",
      "topics": [
        "threemc_fit_model"
      ]
    },
    {
      "page": "threemc_initial_pars",
      "title": "Initialise 'thremec' (hyper)parameters.",
      "topics": [
        "threemc_initial_pars"
      ]
    },
    {
      "page": "threemc_ppc",
      "title": "Posterior Predictive Distribution and checks on OOS survey",
      "topics": [
        "threemc_ppc"
      ]
    },
    {
      "page": "threemc_ppc2",
      "title": "Posterior Predictive Distribution and checks on OOS survey",
      "topics": [
        "threemc_ppc2"
      ]
    },
    {
      "page": "threemc_prepare_model_data",
      "title": "Produce Data Matrices for Modelling",
      "topics": [
        "threemc_prepare_model_data"
      ]
    }
  ],
  "_readme": "https://github.com/mrc-ide/threemc/raw/master/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "boot",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "data.table",
    "DBI",
    "deldir",
    "distributional",
    "dplyr",
    "e1071",
    "evaluate",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "isoband",
    "KernSmooth",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "loo",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "mgcv",
    "mvtnorm",
    "nlme",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "posterior",
    "proxy",
    "purrr",
    "R.methodsS3",
    "R.oo",
    "R.utils",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "s2",
    "S7",
    "scales",
    "scoringRules",
    "scoringutils",
    "sf",
    "sp",
    "spData",
    "spdep",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "TMB",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk",
    "xfun",
    "yaml"
  ],
  "_score": 2.380211241711606,
  "_indexed": true,
  "_nocasepkg": "threemc",
  "_universes": [
    "mrc-ide"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.45",
      "date": "2026-05-16T07:24:45.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "626d812161708d5454de6c7c5924b2e6acd3d1347cfadd8ceb59a898d974b41a",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.45",
      "date": "2026-05-16T07:24:52.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "4aebb8d9d85048ad394320d163ea4e621d7187d9f78d4a71b6938e8aa66f2f3d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.45",
      "date": "2026-05-16T07:24:37.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "a006f71b5418718ec5523acc9b6c15c158f7e2f6c17bcec5e2e075a7097b28dc",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.45",
      "date": "2026-05-16T07:24:54.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "ea3f1829e86b4ab1e2237d178db9fac9473ff33f21af882f19a0491351c65621",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.45",
      "date": "2026-05-16T07:23:48.000Z",
      "arch": "aarch64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "2d05327d5c4681f9ba0c4529612de6a9561b3423c0e9b9169bf1c83a3e5e5a98",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.45",
      "date": "2026-05-16T07:24:43.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "3c7136b35f63ba4f8ad31e8a93e2bec52fc33eac62e4c23f10129ade2cbe0af8",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.45",
      "date": "2026-05-16T07:24:21.000Z",
      "arch": "aarch64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "1cd5f92f0df16d7fdf0a24e82f849c3b816caad0fdd7fda5bdb7a1a1dcb6aaa0",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.45",
      "date": "2026-05-16T07:24:56.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "d3fffa1d02b697e4954d7045ee1cdd4c40c524ecf37d53f3e67eaa0bb436c65c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.45",
      "date": "2026-05-16T07:23:35.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "d251de44d181a82a85df68d8ba724a56eb15412614a9f76116f4025580f83797",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.45",
      "date": "2026-05-16T07:23:46.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "2f00b490bf82aaaea4d6ac6bd74e87db82eb45732515491fb92f69d1ff38f938",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.45",
      "date": "2026-05-16T07:23:39.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "e4f49f813500a53bc4829284e90a39280fbfff9354cbb9b1db48e5cf9c573bbe",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/25955406403"
    }
  ]
}