The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Malaria » IRS in last 12 months
Re: IRS in last 12 months [message #12140 is a reply to message #12116] Fri, 31 March 2017 17:33 Go to previous message
Liz-DHS
Messages: 1516
Registered: February 2013
Senior Member
Dear User,
A response from malaria expert, Cameron Taylor:
Quote:

Dear User,
Your code looks right except for you also need to account for the variables hv253a-hv253c which are specifying who sprayed the dwelling in your IRS variable. I also noticed in your code you are using the mean command and creating locals from that. You could shorten your code dramatically by using the estpost command which automatically stores results such as LB and UB from the command. Just sharing some helpful Stata tips!


svyset [pw=wt], psu(hv001) strata(hv023) singleunit(centered)
g irs=0
replace irs=1 if hv253==1 & (hv253a==1|hv253b==1|hv253c==1)

estpost svy: tab irs
ereturn list


Quote:


Thanks
Cameron

 
Read Message
Read Message
Previous Topic: Maternal education variable
Next Topic: Households with at least 1 ITN in all countries
Goto Forum:
  


Current Time: Thu Dec 26 01:33:51 Coordinated Universal Time 2024