Luminare: Programming Code for DHS Indicators

Written by: The DHS Program

10 Jul, 2019
DHS Staff Programming

This blog post is part of Luminare, our blog series exploring innovative solutions to data collection, quality assurance, biomarker measurement, data use, and further analysis.


Have you ever wondered how to write a Stata program for vaccination coverage or struggled to construct mortality rates using DHS data? Well, DHS Program staff are busy writing SPSS and Stata code for all indicators listed in the Guide to DHS Statistics, and you can use this code to jump-start your exploration of the data. And as they are completed, the code will be posted on GitHub for open access to the public. 

The DHS Program GitHub site contains two repositories: DHS-Indicators-Stata and DHS-Indicators-SPSS. Users can download the code from these repositories or clone the repository to their own Github site. Users can also suggest changes to the code that will be reviewed by DHS Program staff before acceptance. 

Don’t see what you need? The programming for all indicators listed in the Guide to DHS Statistics will be available by September 2020. The Guide corresponds to the topics/chapters that are typically found in a DHS survey final report in addition to the modules for malaria and HIV prevalence. As of July 2019, about half of the indicators have been coded and shared in Stata including indicators covering child health, family planning, and reproductive health. SPSS code will follow later in 2019 and 2020, along with the remainder of the indicators. Review the Readme text file for more details.

Questions? Email codeshare@DHSprogram.com 

©ICF

One thought on “Luminare: Programming Code for DHS Indicators

  1. Hi dear,
    Can you share me the Stata code for female genital mutilation among girls aged 0-14 years from DHS?
    I have extracted the FGM for women aged 15-49 years easily, but the FGM among girls aged 0-14 years.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to The DHS Program Blog:

* = required field

Anthropometry measurement (height and weight) is a core component of DHS surveys that is used to generate indicators on nutritional status. The Biomarker Questionnaire now includes questions on clothing and hairstyle interference on measurements for both women and children for improved interpretation.