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
IRS in last 12 months published on StatCompiler [message #12117] Wed, 29 March 2017 12:55 Go to next message
DHS user is currently offline  DHS user
Messages: 111
Registered: February 2013
Senior Member
By any chance would it be possible that you share with me the stata/sas code that have been used to calculate the % of households with IRS in last 12 months published in Stat Compiler?
I have calculated the same figures but yours and mine do not align.
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]

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: Mon Nov 25 00:07:12 Coordinated Universal Time 2024