10 Jul 2019

Luminare: Programming Code for DHS Indicators

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 

Written by The DHS Program

Leave a Reply

Your email address will not be published. Required fields are marked *

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

The information provided on this Web site is not official U.S. Government information and does not represent the views or positions of the U.S. Agency for International Development or the U.S. Government.

The DHS Program, ICF
530 Gaither Road, Suite 500, Rockville, MD 20850
Tel: +1 (301) 407-6500 • Fax: +1 (301) 407-6501
dhsprogram.com