Skip to content

mcmsupply

1.1.1Package record

Estimating Public and Private Sector Contraceptive Market Supply Shares

0packages dependsuggested by 1
2.7Kdownloads / year
40.4%test coverage
11/13flavors OK

Overview

About

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.

Changes in 1.1.1
  • Update to custom data functionality to include custom covariance matrices

From NEWS.md in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
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>.

CRAN check page ↗

Slowest check: 8.9 min · r-release-macos-x86_64
Status changes
  • NOTE11 OK, 2 NOTE2026-06-09
  • ERROR11 OK, 1 NOTE, 1 ERROR2026-06-08
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.1.1
README· In the repository, left out of the releaseVignettesYes · 7 · dynamicNEWSYes · 67% structured · mentions 1.1.1Citation fileNoWebsiteYes · pkgdown
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%

Downloads

2.7K
CRAN downloads in the past year
Rank #16,343 · ~7/day · ~225/mo
Daily download trend is not available in this view yet.
30830 days
77190 days
2.7K1 year
Compare downloads with other packages →
Also on72 r2u4 autocran

Repository

2Stars
3Forks
0Open issues
0Open PRs
8Releases
319Commits
5Commit identities
319 commits · Last activity 2026-03-22 · The default branch showed an older version (1.0.3) than CRAN on 2026-10-21
Responsiveness
How these are sampled
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

2023-03-24 · 22026-07-07 · 2
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux and macOS, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-03-22 · The repository has a site deploy workflow

pkgdown site last built 2026-03-22

Coverage (1)
Coverage reporting
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 0.1.1 (2023)
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.1Latest
    record
    2024-03-18 · current release · diff ↗
  • 1.0.1
    record
    2024-03-12 · diff ↗ ·
    added 2 exports
    get_posterior_P_samps, pull_estimates
  • 0.2.2
    record
    2023-08-14 · diff ↗
  • 0.1.1
    record
    2023-07-11
  • R
    R 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")
Comiskey, H., Alkema, L., & Cahill, N. (2024). mcmsupply: Estimating Public and Private Sector Contraceptive Market Supply Shares (Version 1.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for mcmsupply version 1.1.1 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy