The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Measles vaccination NFHS 5 India (data not matching with report of NFHS 5 India )
Re: Measles vaccination NFHS 5 India [message #28781 is a reply to message #28752] Thu, 07 March 2024 10:57 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3190
Registered: February 2013
Senior Member
Following is a response from Senior DHS Specialist, Tom Pullum:

You have to include h9=4. Here is Stata code to produce C (reported by card), M (reported by mother), and CM (reported by either);

gen C=0
replace C=1 if h1==1 & (h9==1 | h9==2 | h9==3 | h9==4) 

gen M=0
replace M=1 if C==0 & h9==2 

gen CM=C+M

summarize C M CM [iweight=v005/1000000]

It is helpful to enter "tab h1 h9 [iweight=v005/1000000], m cell" in the KR file. That table has many logically empty cells. The recodes above show how the non-empty cells count toward C or M.

 
Read Message
Read Message
Previous Topic: STATA code for food insecurity access scale(FIES), Anxiety(GAD-7) and Depression(PHQ-9)
Next Topic: Merging Birth's / Chidren's with Household Member Recode
Goto Forum:
  


Current Time: Sat Nov 9 07:58:04 Coordinated Universal Time 2024