The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Duplicates in KR file and Empty values for HV005 after merging.
Re: Which variable to use. [message #15143 is a reply to message #15116] Thu, 07 June 2018 17:53 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3043
Registered: February 2013
Senior Member

Following is a response from Senior DHS Stata Specialist, Tom Pullum:

I think you may be making this more complicated than necessary. This part of table 10.1 in the NFHS report is constructed directly from the KR file, with children as units. The following lines will give you, for example, the 45.8% in the image you attached. This is the percentage of children who are stunted, given that the mother is underweight. This could be modified to give more numbers, but for simplicity I just match that number. Can you try this approach?

gen stunted=0
replace stunted=100 if hw70<-200
replace stunted=. if hw70<-600 | hw70>600

gen mo_underwt=0
replace mo_underwt=1 if v445<1850
replace mo_underwt=0 if v445>=99988

summarize stunted if mo_underwt==1 [iweight=v005/1000000]

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Merging HW to IR for Mali DHS IV - Missing HWCASEID
Next Topic: Appending datasets of one country for several years
Goto Forum:
  


Current Time: Sat Apr 27 07:53:04 Coordinated Universal Time 2024