Dev Site — You are viewing the development build. Go to Main Site

  • English
  • Français
  1. 1. Getting Started
  2. 1.1 About and Contact Information
  • Code library for subnational tailoring
    English version
  • 1. Getting Started
    • 1.1 About and Contact Information
    • 1.2 For Everyone
    • 1.3 For the SNT Team
    • 1.4 For Analysts
    • 1.5 Acronyms and Resource Library
    • 1.6 Producing High-Quality Outputs
  • 2. Data Assembly and Management
    • 2.1 Working with Shapefiles
      • Spatial data overview
      • Basic shapefile use and visualization
      • Shapefile management and customization
      • Merging shapefiles with tabular data
    • 2.2 Health Facilities Data
      • Fuzzy matching of names across datasets
      • Health facility coordinates and point data
    • 2.3 Routine Surveillance Data
      • Determining active and inactive status
      • Routine data extraction
      • DHIS2 data preprocessing
      • Missing data detection methods
      • Health facility reporting rate
      • Contextual considerations
      • Data coherency checks
      • Outlier detection methods
      • Imputation methods
      • Final database
    • 2.4 Stock Data
      • LMIS
    • 2.5 Population Data
      • National population data
      • WorldPop population raster
    • 2.6 National Household Survey Data
      • DHS data overview and preparation
      • Prevalence of malaria infection
      • All-cause child mortality
      • Treatment-seeking rates
      • ITN ownership, access, and usage
      • Wealth quintiles analysis
    • 2.7 Entomological Data
      • Entomological data
    • 2.8 Climate and Environmental Data
      • Climate and environment data extraction from raster
    • 2.9 Modeled Data
      • Generating spatial modeled estimates
      • Working with geospatial model estimates
      • Modeled estimates of malaria mortality and proxies
      • Modeled estimates of entomological indicators
    • 2.10 Cost Data
  • 3. Situation Analysis
    • 3.1 Review of Past Interventions
      • Case Management
      • Routine Interventions
      • Mass ITN Campaigns
      • Chemoprevention Campaigns
      • Other Vector Control
    • 3.2 Trend Analysis
    • 3.3 Risk Factors
    • 3.4 Impact Evaluation
    • 3.5 Cost Analysis
  • 4. Stratification
    • 4.1 Epidemiological Stratification
      • Incidence overview and crude incidence
      • Incidence adjustment 1: incomplete testing
      • Incidence adjustment 2: incomplete reporting
      • Incidence adjustment 3: treatment-seeking
      • Incidence stratification
      • Prevalence and mortality stratification
      • Combined risk categorization
      • Risk categorization REMOVE?
      • Risk categorization REMOVE?
    • 4.2 Access to Care
    • 4.3 Seasonality
      • Defining Seasonal Areas
      • Durations of Seasonality
    • 4.4 Urban Microstratification
  • 5. Intervention Targeting and Prioritization
    • 5.1 Intervention Targeting
    • 5.2 Prioritization
    • 5.3 Optimization under Limited Resources

On this page

  • About
    • What Is the SNT Code Library?
    • Where to Start
  • Acknowledgements
    • Special Thanks
  • Funding
  • License
  • How to Cite
  • Disclaimer
  • Contact Us
    • Submit a Question or Comment
    • Contribute to the Library
    • Subscribe for Updates
  1. 1. Getting Started
  2. 1.1 About and Contact Information

Community Code Library for Subnational Tailoring of Malaria Interventions

English version

About

A community-developed, openly licensed reference of R and Python code for analyses commonly used in subnational tailoring (SNT) of malaria interventions. Not an SNT manual, dataset, or step-by-step country plan.

What Is the SNT Code Library?

Subnational tailoring (SNT) adapts a country’s disease response at the subnational level to account for and appropriately address local heterogeneities in transmission, its determinants, and the likely impact of various intervention strategies. Data, analysis, and modeling play an important role in certain steps of the SNT process to inform understanding of the epidemiological and intervention context and to guide intervention design.

The steps in the SNT process are intended to align with and provide additional evidence during standard malaria planning and implementation processes. WHO has issued guidance for countries on the preparation of national malaria strategic plans (NMSPs) and related programme reviews, operational plans, and costing, all aligned with national health sector plans. SNT should be nested within these processes and timelines: it is not a separate process, as it is aimed at directly informing the programme reviews, NMSPs, resource mobilization, and implementation. WHO published its Manual for subnational tailoring of malaria interventions in October 2025.

Many steps of SNT require analysis: descriptive, statistical, geospatial, modeling, economic, and financial, among others. While there is no standardized analysis for SNT, there are common steps done in nearly all countries that have undergone an SNT exercise. After doing SNT in more than 30 countries, analysts have come together to share experiences and code. The community-developed SNT code library is the result of this sharing.

The SNT code library provides quality-assured, explained code as a public reference resource to:

  • Share experience from past SNT exercises with new country teams
  • Improve quality and reproducibility through tested code and documented best practices
  • Make SNT methods more accessible through organised, adaptable code examples
  • Offer bilingual content (English and French) with parallel R and Python where applicable
  • Provide end-to-end worked examples on a teaching dataset (Sierra Leone)
  • Explain how each analysis is done and why, including assumptions and validation checks
  • Cover common analytical building blocks of SNT: data assembly, stratification, and intervention review

We remain responsible for adapting the code in this library to the needs of the local SNT team and country realities.

WarningWhat the SNT code library does not do
  • Provide guidance for conducting SNT (see WHO’s Manual for subnational tailoring of malaria interventions)
  • Prescribe a step-by-step analysis plan: not all code will be relevant to every country, and all of it will require adaptation
  • Provide country data: we must bring our own routine, survey, and spatial inputs. The Sierra Leone data is a teaching example only
  • Replace local epidemiological knowledge, programmatic experience, or country-team judgement
  • Cover the full SNT process: stakeholder engagement, prioritisation, costing, and NMSP integration sit outside its scope
  • Teach R or Python: it assumes basic familiarity with at least one
  • Function as a dashboard or interactive tool: we run the code on our own machines

While the SNT code library is built on experiences with SNT as applied to malaria, similar approaches could also be used for other diseases and adapted as needed.

Where to Start

This library is available in English and French. Use the language selector in the navbar to switch between versions.

If you are new to the library, start with the audience guide that matches your role:

  • Getting started: For everyone: non-technical introduction to SNT and the library
  • Getting started: For the SNT team: guidance for in-country SNT teams
  • Getting started: For analysts: orientation for those running the analyses

Acknowledgements

Special Thanks

We sincerely thank Dr. Abdul Mac Falama and Mr. Musa Sillah-Kanu from the Sierra Leone National Malaria Control Programme (SLNMCP) for permitting the use of Sierra Leone routine data as a teaching tool for this code library.

This code library would not be possible without contributions from many people in the SNT analysis community. We sincerely thank everyone who contributed code, developed pages, tested code, and reviewed content.

Project Leads

Name Institution
Jaline Gerardin AHADI
Mohamed Yusuf AHADI

Developers

Name Institution
Asha Ali AHADI
Ousmane Diallo Northwestern University
Bea Galatas AHADI
Mohamed Kanu Northwestern University
Tabitha Wayua Muema AHADI
Silas Mbivya Mwandikwa AHADI
Chricencia Winny Odhach AHADI
Samuel Oppong Malaria Atlas Project, The Kids Research Institute Australia, and Ghana National Malaria Elimination Program
Safa Siddiqui Northwestern University
Sumaiyya Thawer Swiss Tropical and Public Health Institute
Valérian Turbé Clinton Health Access Initiative

Contributors

Name Institution
Victor Alegana World Health Organization African Region, Precision Public Health Metrics Unit
Celestin Danwang World Health Organization African Region and Clinton Health Access Initiative
Tobias Holden Northwestern University
Anna Makido Harvard T.H. Chan School of Public Health
Christina Matta Harvard T.H. Chan School of Public Health
Mujahid Nouredayem World Health Organization, Global Malaria Programme

Reviewers

Name Institution
Kate Battle Institute for Disease Modeling
Justin Millar PATH
Ricky Richter AHADI
Hayley Thompson PATH

Funding

The SNT code library is funded by the Gates Foundation.

License

The SNT code library is released under two complementary licences:

  • Code (R, Python, and other source files): MIT License
  • Documentation and prose (text, figures, and tutorials): Creative Commons Attribution 4.0 International (CC-BY-4.0)

You are free to reuse, adapt, and redistribute this material, provided appropriate credit is given.

How to Cite

To cite the SNT code library in a publication, report, or programme document, use:

AHADI and contributors. Community Code Library for Subnational Tailoring of Malaria Interventions. 2025–. https://github.com/ahadi-analytics/snt-code-library.

Disclaimer

The views and analytical approaches presented in this library are those of the contributors and do not necessarily reflect the views of WHO or any other listed institution. The findings and conclusions are also those of the contributors and do not necessarily reflect positions or policies of the Gates Foundation.

The code is provided as-is, without warranty of any kind. We are responsible for verifying that any code is appropriate for our data, context, and use case, and for adapting it accordingly.

Use of code from this library does not imply review, validation, or endorsement by any contributor, partner institution, or funder of any user’s analysis or its conclusions.

The contact form, GitHub issues, and email channels are used to improve the library itself. They do not constitute a technical-support channel for country-specific adaptations or pipelines.

Contact Us

We welcome your questions, feedback, and contributions. Here’s how to get in touch depending on your need:

Submit a Question or Comment

If you have a question about library content, a suggestion for the library, or have found an error in the library, please submit to the code library suggestion box by filling out this form.

Contribute to the Library

The library is developed openly on GitHub at ahadi-analytics/snt-code-library. If you would like to contribute, please contact info@appliedhealthanalytics.org with a request to be added as a contributor and a brief description of what you would like to contribute. Bug reports and suggestions can also be opened directly as GitHub issues.

Contributors are expected to engage respectfully and constructively with reviewers and other contributors.

Subscribe for Updates

To receive email updates about new additions and future changes to the SNT code library, please fill out this subscription form.

 

©2026 Applied Health Analytics for Delivery and Innovation. All rights reserved