The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Merging HR variables with KR file
Merging HR variables with KR file [message #10951] Wed, 12 October 2016 04:46 Go to previous message
shayankhan is currently offline  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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Survival Status in Stata
Next Topic: Education level in single years in CR
Goto Forum:
  


Current Time: Sat Apr 20 07:10:33 Coordinated Universal Time 2024