{
  "_id": "6a2fceb53efcd9bda4333dd2",
  "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-06-15 09:10:53 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": "d2ef1fb106a2b2dca618878fae6dcf97",
  "_user": "mrc-ide",
  "_type": "src",
  "_file": "threemc_0.1.45.tar.gz",
  "_fileid": "caad36836f1a6b5177ec7a0eb5313b4b696876839d719611998dc8f3746bc735",
  "_filesize": 6626028,
  "_sha256": "caad36836f1a6b5177ec7a0eb5313b4b696876839d719611998dc8f3746bc735",
  "_created": "2026-06-15T09:10:53.000Z",
  "_published": "2026-06-15T10:06:45.684Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81388073192,
      "time": 1190,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7634458916"
    },
    {
      "job": 81388073175,
      "time": 1140,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7634442796"
    },
    {
      "job": 81388073188,
      "time": 1147,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7634443232"
    },
    {
      "job": 81388073213,
      "time": 1133,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7634438044"
    },
    {
      "job": 81388073197,
      "time": 708,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7634277652"
    },
    {
      "job": 81388073209,
      "time": 1448,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7634555995"
    },
    {
      "job": 81388073190,
      "time": 579,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7634228367"
    },
    {
      "job": 81388073234,
      "time": 1077,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7634416634"
    },
    {
      "job": 81382138290,
      "time": 1994,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7634012628"
    },
    {
      "job": 81388073143,
      "time": 172,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 81388073275,
      "time": 2397,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7634908462"
    },
    {
      "job": 81388073199,
      "time": 2432,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7634920673"
    },
    {
      "job": 81388073450,
      "time": 1493,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7634573602"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898",
  "_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",
    "followers": 155,
    "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",
    "LICENSE",
    "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-06-15T09:28:49.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "08a33f7358267a4cf982108170f846505399bd1a07ef6a32ce53d84efa75c765",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.45",
      "date": "2026-06-15T09:28:34.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "655ea0dc7399116159d8f4f084e2aeab2693b27a23f147a179aa9780448f1b4e",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.45",
      "date": "2026-06-15T09:29:04.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "b2eedc1ede23546b29133be26cdef25dfbd327fb1b0fcb99fff01c1e2962f243",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.45",
      "date": "2026-06-15T09:28:34.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "2162dbab6122df680f49e2b59aaa7f4abaef5f3f6416e3ffdaf03901ab81f173",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.45",
      "date": "2026-06-15T09:27:25.000Z",
      "arch": "aarch64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "feee5a4166c89befae8effcdabe6b8d659e9e28ed47c433a4c73b896cdf16915",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.45",
      "date": "2026-06-15T09:28:25.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "49e551d06e789a44fb64c54ed7c0ba3a0e6f26d78447ab58ab3b8f7bd5c653dd",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.45",
      "date": "2026-06-15T09:27:33.000Z",
      "arch": "aarch64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "4b46fb549e82703c02bc592b9e7a22e6e1387277332bb2cce5e538a948d45f15",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.45",
      "date": "2026-06-15T09:29:23.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "c2cf0cb9b100aff06e656d2cdc42179d998899c874b2df950d456bfbc5b0f561",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.45",
      "date": "2026-06-15T09:26:57.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "b73dee65b1c9306b1135d2d1f98779650030c8685bdbace9a00fe27ea9a0c6ae",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.45",
      "date": "2026-06-15T09:27:02.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "e502d47df11e1602d24985a076c233ccf7e3d4731e9d62fafe7c098196757d2e",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.45",
      "date": "2026-06-15T09:27:14.000Z",
      "arch": "x86_64",
      "commit": "e10f54bd54babb3a93daa2b31f1b10f56a540d1c",
      "fileid": "526f347c196b8a408ca50b551f34d7cf34889ce0771edc37652db7ff4796e6da",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mrc-ide/actions/runs/27535002898"
    }
  ]
}