The purpose of this repository is to share the code necessary to replicate DHS Final Report statistics using IPUMS DHS data.
Each chapter in the repository creates statistics for the corresponding chapter in a DHS Final Report. For example, Chapter 2 of DHS Final Reports shows "Household Characteristics;" Chapter 2 of this repository allows users to create those statistics for themselves.
Nearly all of the Stata code in this repository is a modification of Stata .do files from this DHS program project. The modifications are designed to make the code work with IPUMS DHS data.
Here are the general steps necessary to run the code in this repository correctly. Note that each chapter also has its own README file with more specific information.
Step 1. Clone this repository to your local drive.
Step 2. Create One or More Data Files using IPUMS DHS.
- Select "GET DATA." Use the chapter-specific readme file to determine your Unit of Analysis (women, children, births, household members, or men). Some chapters require you to create data files for more than one unit of analysis. In that case, create one file at a time by repeating steps 2-7 below.
- Select the data sample(s) that interest you.
- Select variables for your project using the search function or the Topics drop-down menu. Each chapter's README lists the specific variables you need to conduct the analysis for that chapter.
- When you have selected all the samples and variables you want, click "VIEW CART"; then click “CREATE DATA EXTRACT”. (Don't worry if you forget a variable. You can always add or change variables or samples to your data file by clicking "MY DATA" on the IPUMS DHS homepage.)
- Choose your desired data format. *Note: For use with Stata: choose “Stata (.dta)”
- Optional: Describe your extract for easy organization between your multiple data extracts
- Select “SUBMIT EXTRACT”. You will receive an email when your extract is ready to download. Download, unzip and save your data file. Repeat these steps for another Unit of Analysis, if required by the chapter readme file.
Step 3. On your local drive, update the executing files with specifics-- the file name(s) with paths, the name(s) of your sample specific geography variable(s), and a map to your working directory.
Step 4. Run the Main file for your chapter.