Estimating Public and Private Sector Contraceptive Market Supply Shares
Overview
Family Planning programs and initiatives typically use nationally representative surveys to estimate key indicators of a country’s family planning progress. However, in recent years, routinely collected family planning services data (Service Statistics) have been used as a supplementary data source to bridge gaps in the surveys. The use of service statistics comes with the caveat that adjustments need to be made for missing private sector contributions to the contraceptive method supply chain. Evaluating the supply source of modern contraceptives often relies on Demographic Health Surveys (DHS), where many countries do not have recent data beyond 2015/16. Fortunately, in the absence of recent surveys we can rely on statistical model-based estimates and projections to fill the knowledge gap. We present a Bayesian, hierarchical, penalized-spline model with multivariate-normal spline coefficients, to account for across method correlations, to produce country-specific,annual estimates for the proportion of modern contraceptive methods coming from the public and private sectors. This package provides a quick and convenient way for users to access the DHS modern contraceptive supply share data at national and subnational administration levels, estimate, evaluate and plot annual estimates with uncertainty for a sample of low- and middle-income countries. Methods for the estimation of method supply shares at the national level are described in Comiskey, Alkema, Cahill (2022) arXiv:2212.03844.
- Update to custom data functionality to include custom covariance matrices
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Hannah Comiskey <hannah.comiskey.2015@mumail.ie>’ The Description field contains <arXiv:2212.03844>. Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
- NOTE11 OK, 2 NOTE2026-06-09
- ERROR11 OK, 1 NOTE, 1 ERROR2026-06-08
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 24 (1 internal)includes a package overview page
- Examples that run
- 0%3 only when donttest examples are enabled (R CMD check --as-cran) · 3 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Package data
- Running a national level multi-country model
- Running a national level single-country model
- Running a national level single-country model with custom data
- Running a subnational level multi-country model
- Running a subnational level single-country model
- Running a subnational level single-country model with custom data
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
PRs over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/hannahcomiskey/mcmsupply on 2026-10-21.
The R CMD check workflow runs on Linux and macOS, and on R-devel
GitHub Pages site last deployed 2026-03-22 · The repository has a site deploy workflow
pkgdown site last built 2026-03-22
Show all practicesHide 1 practice
Dependencies
Installing mcmsupply adds 121 packages (58 with compiled code, 78 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.1.1Latest
- 1.0.1
- 0.2.22023-08-14 · diff ↗
- 0.1.12023-07-11
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-07-11
- Total releases
- 4 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 178 KB / 17 files
- Download size
- 618 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("mcmsupply")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.