The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Malaria » Malaria Treatment Variable
Re: Malaria Treatment Variable [message #11692 is a reply to message #11677] Mon, 30 January 2017 10:19 Go to previous message
cbdolan is currently offline  cbdolan
Messages: 17
Registered: March 2013
Location: Williamsburg, VA
Member
Hello,

I found post #8930 and now understand that the MIS is constructed in similar recode files to the standard DHS (ie. IR, PR, KR...). I also now understand the merge is similar and have correctly merged the 2013 PR and KR using the following code:

use Z:\Data\DataIn_Original\2_DHS_MIS\MWKR6HDT_MIS\MWKR6HFL.dta, clear
gen hv001=v001
gen hv002=v002
gen hvidx=b16
sort hv001 hv002 hvidx
save Z:\Data\DataIn_Original\0_Scratch\temp.dta, replace

use Z:\Data\DataIn_Original\2_DHS_MIS\MWPR6HDT_MIS\MWPR6HFL.dta, clear
sort hv001 hv002 hvidx
merge hv001 hv002 hvidx using Z:\Data\DataIn_Original\0_Scratch\temp.dta
tab _merge
keep if _merge==3
drop _merge

*N=2171

No response to this post is necessary.

Thanks!
 
Read Message
Read Message
Previous Topic: Mosquito nets
Next Topic: 2011 Cameroon Demographic Health Survey
Goto Forum:
  


Current Time: Fri Dec 27 23:04:10 Coordinated Universal Time 2024