Merging HR variables with KR file [message #10951] |
Wed, 12 October 2016 04:46 |
shayankhan
Messages: 16 Registered: September 2016 Location: Karachi, Pakistan
|
Member |
|
|
Hi,
I want to get some HR variables in the KR file and I am using the following code for this. Can you please verify if this code is right. Also, am I right to use the women's sample weights on these HR variables after they have been merged into the KR file as my analysis is on children.?
use "PKHR61FL.dta", clear
rename hv001 v001
rename hv002 v002
keep v001 v002 hv009 hv216 hv242
save "merging.dta", replace
use "testing.dta", clear
mmerge v001 v002 using merging, type(n:1)
keep if _merge==3
drop _merge
erase merging.dta
Thanks.
|
|
|