The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Extracting Zimbabwe households with at least 1 birth in last 2 years
Re: Extracting Zimbabwe households with at least 1 birth in last 2 years [message #2722 is a reply to message #2718] Fri, 15 August 2014 01:49 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 795
Registered: January 2013
Senior Member
Hi Sean,
1) First you need to decide on what your unit of analysis will be - that usually determines the dataset to use. It sounds like you will be analyzing women, so you should use a file that has women as the unit of analysis, and you are right that the BR dataset is the wrong file - you should use the IR file.
2) Second you need to select which women to include in your analysis. If you are interested in analyzing women who gave birth in the last two years, then you need to look at the date of the last birth compared to the date of interview. v008 is the century month code (cmc) of the date of interview and b3_01 is the cmc of the date of the last birth, thus you should women with the following if clause:

if v008 - b3_01 < 24

 
Read Message
Read Message
Read Message
Previous Topic: Replicating vaccination rate
Next Topic: survey set preparation for Pakistan DHS 2012-13
Goto Forum:
  


Current Time: Mon May 20 09:16:25 Coordinated Universal Time 2024