Re: Malaria Treatment Variable [message #11692 is a reply to message #11677] |
Mon, 30 January 2017 10:19 |
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!
|
|
|