{
  "_id": "6a1f2215b401979e734207d9",
  "Package": "mcmsector",
  "Type": "Package",
  "Title": "Estimating Subnational Public and Private Contraceptive Supply\nShares Over Time",
  "Version": "1.0.2",
  "Author": "Hannah Comiskey [aut, cre], David Fraizer [aut], Ole\nManeesoonthorn [aut]",
  "Maintainer": "Hannah Comiskey <hannahcomiskey68@gmail.com>",
  "Authors@R": "c(person(given = \"Hannah\",\nfamily = \"Comiskey\",\nrole = c(\"aut\", \"cre\"),\nemail = \"hannahcomiskey68@gmail.com\"),\nperson(given = \"David\",\nfamily = \"Fraizer\",\nrole = \"aut\"),\nperson(given = \"Ole\",\nfamily = \"Maneesoonthorn\",\nrole = \"aut\"))",
  "Description": "Engaging the private sector in contraceptive method supply\nis critical for equitable, sustainable, and accessible\nhealthcare systems. This package implements Bayesian\nhierarchical models to estimate public and private\ncontraceptive supply shares over time at national and\nsubnational levels, using Demographic and Health Survey (DHS)\ndata. Penalized splines are used to track supply shares over\ntime, and spatial correlation structures link national and\nsubnational estimates in data- sparse settings. For more\ndetails see Comiskey (2025) <doi:10.48550/arXiv.2510.25153>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-16 07:23:47 UTC",
    "User": "root"
  },
  "Config/pak/sysreqs": "make libicu-dev libx11-dev zlib1g-dev",
  "Repository": "https://hannahcomiskey.r-universe.dev",
  "Date/Publication": "2026-04-15 14:08:25 UTC",
  "RemoteUrl": "https://github.com/cran/mcmsector",
  "RemoteRef": "HEAD",
  "RemoteSha": "b86ddc4bf7a059648460be7eea88607942fbb611",
  "MD5sum": "bc9ae84b839612d04d28835dcd965981",
  "_user": "hannahcomiskey",
  "_type": "src",
  "_file": "mcmsector_1.0.2.tar.gz",
  "_fileid": "2198612a03ae4bb5465135234eb917125a8f2a1db650ffe0e633e1fd9c7a4013",
  "_filesize": 323914,
  "_sha256": "2198612a03ae4bb5465135234eb917125a8f2a1db650ffe0e633e1fd9c7a4013",
  "_created": "2026-05-16T07:23:47.000Z",
  "_published": "2026-06-02T18:33:57.451Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79144277275,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031571962"
    },
    {
      "job": 79144277137,
      "time": 179,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031571627"
    },
    {
      "job": 79144277206,
      "time": 223,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031568812"
    },
    {
      "job": 79144277238,
      "time": 192,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031569878"
    },
    {
      "job": 79144276938,
      "time": 195,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031552627"
    },
    {
      "job": 79144276257,
      "time": 147,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366577513"
    },
    {
      "job": 79144277129,
      "time": 133,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031566711"
    },
    {
      "job": 79144277232,
      "time": 94,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031562711"
    },
    {
      "job": 79144277056,
      "time": 107,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031564125"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hannahcomiskey/actions/runs/25956008684",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/mcmsector",
  "_commit": {
    "id": "b86ddc4bf7a059648460be7eea88607942fbb611",
    "author": "Hannah Comiskey <hannahcomiskey68@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.2\n",
    "time": 1776262105
  },
  "_maintainer": {
    "name": "Hannah Comiskey",
    "email": "hannahcomiskey68@gmail.com",
    "login": "hannahcomiskey",
    "uuid": 56960311
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "haven",
      "role": "Imports"
    },
    {
      "package": "survey",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "openxlsx",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "labelled",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "R2jags",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "mcmsupply",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-16",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.2",
      "date": "2026-04-15"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "hannahcomiskey",
      "count": 1,
      "uuid": 56960311
    }
  ],
  "_userbio": {
    "uuid": 56960311,
    "type": "user",
    "name": "Hannah Comiskey"
  },
  "_downloads": {
    "count": 500,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mcmsector"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mcmsector.html",
    "manual.pdf"
  ],
  "_realowner": "hannahcomiskey",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.2",
      "date": "2026-04-15"
    }
  ],
  "_exports": [
    "add_index_variables",
    "build_jags_inputs",
    "build_spline_basis",
    "clean_fp_source_data",
    "compute_T_star",
    "extract_mcmsector_params",
    "fix_region_names",
    "replace_small_or_missing_se",
    "run_preprocessing_pipeline",
    "simulate_posterior_proportions",
    "standardize_country_names",
    "summarise_posterior_proportions"
  ],
  "_datasets": [
    {
      "name": "Country_classification",
      "title": "The Country and area classification according to the United Nations Standaistical Division, Standard country or area codes for statistical use (M49). Adapted for use in FP2030 by the Track20 project. A subset of data from the United Nations country classifications",
      "object": "Country_classification",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Country or area",
        "ISO Code",
        "Major area",
        "Region",
        "Developed region",
        "Least developed country",
        "Sub-Saharan Africa",
        "FP2020"
      ],
      "rows": 231,
      "table": true,
      "tojson": true
    },
    {
      "name": "country_codes_DHS",
      "title": "Country Codes for DHS Surveys",
      "object": "country_codes_DHS",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Code",
        "Country Name",
        "India States",
        "State Name"
      ],
      "rows": 91,
      "table": true,
      "tojson": true
    },
    {
      "name": "DEFT_DHS_database",
      "title": "DEFT_DHS_database A database of the design effects for some of the DHS surveys in the national and subnational datasets. Due to due to multistage and clustering of the DHS sample, the average standard error is increased by a design effect (DEFT) factor over that in an equivalent simple random sample.",
      "object": "DEFT_DHS_database",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Country",
        "Year",
        "DEFT"
      ],
      "rows": 4,
      "table": true,
      "tojson": true
    },
    {
      "name": "subnat_bivar_data",
      "title": "DHS survey observations for the proportion of modern contraceptives supplied by the public and private sectors at the subnational level",
      "object": "subnat_bivar_data",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Country",
        "Region",
        "Method",
        "Year",
        "Public",
        "Private",
        "se.Public",
        "se.Private",
        "Public_n",
        "Private_n",
        "check_sum",
        "average_year"
      ],
      "rows": 1737,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_index_variables",
      "title": "Create index variables for subnational modelling",
      "topics": [
        "add_index_variables"
      ]
    },
    {
      "page": "build_jags_inputs",
      "title": "Build JAGS metadata objects",
      "topics": [
        "build_jags_inputs"
      ]
    },
    {
      "page": "build_spline_basis",
      "title": "Build a B-spline basis for each subnational area",
      "topics": [
        "build_spline_basis"
      ]
    },
    {
      "page": "clean_fp_source_data",
      "title": "Clean Subnational Family Planning Source Data",
      "topics": [
        "clean_fp_source_data"
      ]
    },
    {
      "page": "compute_T_star",
      "title": "Compute T* (last observed year per subnational area)",
      "topics": [
        "compute_T_star"
      ]
    },
    {
      "page": "Country_classification",
      "title": "The Country and area classification according to the United Nations Standaistical Division, Standard country or area codes for statistical use (M49). Adapted for use in FP2030 by the Track20 project. A subset of data from the United Nations country classifications",
      "topics": [
        "Country_classification"
      ]
    },
    {
      "page": "country_codes_DHS",
      "title": "Country Codes for DHS Surveys",
      "topics": [
        "country_codes_DHS"
      ]
    },
    {
      "page": "DEFT_DHS_database",
      "title": "DEFT_DHS_database A database of the design effects for some of the DHS surveys in the national and subnational datasets. Due to due to multistage and clustering of the DHS sample, the average standard error is increased by a design effect (DEFT) factor over that in an equivalent simple random sample.",
      "topics": [
        "DEFT_DHS_database"
      ]
    },
    {
      "page": "extract_mcmsector_params",
      "title": "Extract alpha_pms and beta.k MCMC samples from a JAGS model object",
      "topics": [
        "extract_mcmsector_params"
      ]
    },
    {
      "page": "fix_region_names",
      "title": "Harmonise Region Names for Selected Countries",
      "topics": [
        "fix_region_names"
      ]
    },
    {
      "page": "run_preprocessing_pipeline",
      "title": "High-level preprocessing pipeline",
      "topics": [
        "run_preprocessing_pipeline"
      ]
    },
    {
      "page": "simulate_posterior_proportions",
      "title": "Simulate posterior public/private proportions from alpha and beta parameters",
      "topics": [
        "simulate_posterior_proportions"
      ]
    },
    {
      "page": "standardize_country_names",
      "title": "Standardise country names and attach super-region classification",
      "topics": [
        "standardize_country_names"
      ]
    },
    {
      "page": "subnat_bivar_data",
      "title": "DHS survey observations for the proportion of modern contraceptives supplied by the public and private sectors at the subnational level",
      "topics": [
        "subnat_bivar_data"
      ]
    },
    {
      "page": "summarise_posterior_proportions",
      "title": "Summarise posterior probability samples into mean and quantiles",
      "topics": [
        "summarise_posterior_proportions"
      ]
    }
  ],
  "_rundeps": [
    "bit",
    "bit64",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "DBI",
    "dplyr",
    "forcats",
    "generics",
    "glue",
    "haven",
    "hms",
    "labelled",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "minqa",
    "mitools",
    "numDeriv",
    "openxlsx",
    "pillar",
    "pkgconfig",
    "plyr",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "Rcpp",
    "RcppArmadillo",
    "readr",
    "rlang",
    "stringi",
    "stringr",
    "survey",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "zip"
  ],
  "_score": 1,
  "_indexed": true,
  "_nocasepkg": "mcmsector",
  "_universes": [
    "hannahcomiskey"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-05-16T07:26:28.000Z",
      "distro": "noble",
      "commit": "b86ddc4bf7a059648460be7eea88607942fbb611",
      "fileid": "f480289a31ba58d9273365ced34f6f3f8e67cc9738a2753ac00035092a9a70e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hannahcomiskey/actions/runs/25956008684"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-05-16T07:26:26.000Z",
      "distro": "noble",
      "commit": "b86ddc4bf7a059648460be7eea88607942fbb611",
      "fileid": "9554c79fd0db7f5f5469b6ab29c2352490dc2e4cac686cf4040d5b44bd2579d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hannahcomiskey/actions/runs/25956008684"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-05-16T07:26:05.000Z",
      "commit": "b86ddc4bf7a059648460be7eea88607942fbb611",
      "fileid": "ae90cafbe7040e3de01280a58e31e75d692e0948cdc5ec551cea4d2cb64949f4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hannahcomiskey/actions/runs/25956008684"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-05-16T07:26:18.000Z",
      "commit": "b86ddc4bf7a059648460be7eea88607942fbb611",
      "fileid": "85e1d110370524fe1e67df0bdfb79152c9e692e5f350e40f7b0e203b24c2a7ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hannahcomiskey/actions/runs/25956008684"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-05-16T07:25:31.000Z",
      "commit": "b86ddc4bf7a059648460be7eea88607942fbb611",
      "fileid": "5216ab7176a56fd14593a91b16f50f9ad81dee9699b34337ccb32762165effab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hannahcomiskey/actions/runs/25956008684"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-05-16T07:24:59.000Z",
      "commit": "b86ddc4bf7a059648460be7eea88607942fbb611",
      "fileid": "981f42278a6ff67a61b6285018c0149e50d4bd5d607bb908b0b203d491eb54b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hannahcomiskey/actions/runs/25956008684"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-05-16T07:25:08.000Z",
      "commit": "b86ddc4bf7a059648460be7eea88607942fbb611",
      "fileid": "7b505d0d369a9fe4804cac86d3e252ff9d5c0f8d5d7c4c323060735ecf6d16ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hannahcomiskey/actions/runs/25956008684"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.2",
      "date": "2026-06-02T18:33:35.000Z",
      "commit": "b86ddc4bf7a059648460be7eea88607942fbb611",
      "fileid": "d29938fa423b83a6aa0f400303d30fdb532df84a4914abb6d5cea1be590081d7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hannahcomiskey/actions/runs/25956008684"
    }
  ]
}