The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Dissemination and Capacity Strengthening » STATcompiler/mobile app » IRS in last 12 months published on StatCompiler
Re: IRS in last 12 months published on StatCompiler [message #12118 is a reply to message #12117] Wed, 29 March 2017 12:57 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member
Following is a response from DHS Senior Research Associate, Cameron Taylor:

You can use the following code to replicate % of households with IRS in last 12 months. I am not sure which survey you are trying to replicate but this is the standard code that will work with most surveys. If the code below is still not matching be sure to check for any country specific spraying variables hv253d-hv253h that might be applicable to the survey of interest.

Use HR file
g wt= hv005/1000000

g irs=0
replace irs=1 if hv253==1 & (hv253a==1|hv253b==1|hv253c==1)

tab irs [iweight=wt]

 
Read Message
Read Message
Previous Topic: Recode File - Universe definition
Next Topic: Views of urban women in Cambodia on whether at least 1 reason justifies a husband beating his wife
Goto Forum:
  


Current Time: Thu Nov 21 23:57:00 Coordinated Universal Time 2024