The DHS Program recently released three YouTube tutorial videos to help DHS data users access The DHS Program’s Code Share Library on GitHub. The Code Share Library was started in 2018 to provide code for producing DHS indicators listed in the Guide to DHS Statistics using statistical software like Stata or SPSS. This year, The DHS Program has begun preparing R code as well. You do not need to create a GitHub account to copy or download any code to produce DHS indicators; it is publicly available for use.
The first video, Overview of The DHS Program’s Code Share Library on GitHub, explains the main components of the Code Share Library, including Stata and SPSS repositories, the indicator list, ReadMe file, and chapter folder contents. In each repository on GitHub, there is an important ReadMe file with instructions for users to read before using the code provided.
One way to start using the Code Share Library is to download the entire repository on your computer. If any update is made to the code in the future, you will need to download the updated code from the Code Share Library. Another way to run the code is to copy and paste the code for your indicator of interest from GitHub to your own personal do file, without having to download the entire repository.
The third video, Running The DHS Program’s Shared Code on Stata, demonstrates how to run the code in Stata to construct indicator variables and produce tables for the indicators. The tables provide a simple tabulation that follows the standard DHS tabulation plan used for survey final reports.
Statistical tables can look intimidating at first glance. That’s why we created this How to Read DHS Tables video tutorial using model datasets. Model datasets are created strictly for practice and do not represent any actual country’s data. Download the full model datasets report tables, and follow along on your own. At the end of the tutorial, we’ll have a few practice questions to test your knowledge.
In just 4 easy steps, you can read any table found in a number of DHS Final Reports. Once you’ve mastered reading DHS tables, test your knowledge with a quiz and comment below on how you did!
The following videos provide an overview of DHS data answering key questions such as, what is a data file or dataset? What is the difference between De Jure and De Facto? What types of data files are available for download?
Starting with the Introduction to DHS Datasets, this videoprovides a guide to units of analysis, basic terminology, and DHS data files.
As mentioned in the video above, separate data files are created for different units of analysis. DHS Dataset Types in 60 Seconds runs through the most common data files and what they contain.
De Jure and De Facto are terms that you will see often within DHS reports and datasets. The following video breaks down what the terms mean, and how they apply to analyzing DHS data.
And finally, where is the information about interviewed households and individuals located in different data files? The Introduction to DHS Data Structure examines DHS datasets in a hierarchical structure.
We will have more videos released this summer, but for those who are still eager to learn more about DHS data, check out DHS Dataset Names Explained below.
Hans Rosling created a world where “statistics are beautiful” and data are entertaining. The staff at The DHS Program have always believed these things to be true but found it difficult to convince the masses. And then came Gapminder and the juggernaut of Hans Rosling’s charismatic, informative, and perspective-changing data presentations.
The DHS Program was heartbroken to learn of Hans Rosling’s death earlier this week. DHS has enjoyed a long and enthusiastic relationship with Dr. Rosling. In 2009, The DHS Program and USAID had the honor of welcoming Dr. Rosling as our keynote speaker at the DHS 25th anniversary celebration in Washington, DC. What is particularly striking in watching the video again after 8 years, is the laughter. Before Hans Rosling, no one would have believed that a data presentation could be so engaging and witty while being so insightful.
In addition to being entertaining and informative, Dr. Rosling was exceptionally modest and gracious. He came to the DHS 25th anniversary event at his own cost, and credited USAID and DHS data with his own success. He thanked USAID and the US taxpayers saying, “Nothing in my career would have been possible without DHS data.”
But really we, at The DHS Program, owe Hans Rosling a tremendous debt of gratitude. Dr. Rosling was a great advocate not just for DHS data, but for all data. He understood, better than anyone else, that data are worthless unless they are used. And he succeeded in doing what many of us have attempted and failed: he made data come alive. He used the data to expose the many incorrect notions about development that even people working in the field have, and he did it with such unique charm and flair. His presentations inspired people to think in different ways and to take action.
To Hans Rosling’s family, we thank you for sharing Hans with the world, and for so willingly joining his mission to “edutain” us. All of us at The DHS Program mourn the loss of this warm, generous visionary. This week, more than ever, we commit to continue the work that Hans has started, and will be inspired by Hans Rosling’s leadership and ingenuity as we look for new ways to provide the world with actionable, understandable data.
In contrast, the third and fourth videos use an Example Practice Dataset, so viewers can practice weighting DHS data and replicate what is being shown in the videos while they are watching. The Example Practice Dataset was specifically created for DHS data users to have hands-on practice using DHS data in different statistical packages (Stata, SPSS and SAS) and does not represent the data of any actual country.
The third video, How to Weight DHS Data in Stata, explains which weight to use based on the unit of analysis, describes the steps of weighting DHS data in Stata and demonstrates both ways to weight DHS data in Stata (simple weighting and weighting that accounts for the complex survey design).
The fourth video, Demonstration on How to Weight DHS Data in SPSS and SAS, is the same as the third video, except it uses the statistical software packages SPSS and SAS instead of Stata.
After watching these videos, you will be able to answer the following questions:
Which weights should I use for my analysis?
What are the steps of weighting data in a statistical software package?
How do I weight DHS data in Stata, SPSS or SAS?
How do I account for the complex sample design when weighting in Stata, SPSS or SAS?