The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Merging Individual and HH Member Recode Files
Re: Merging Individual and HH Member Recode Files [message #13925 is a reply to message #10611] Thu, 25 January 2018 12:55 Go to previous messageGo to previous message
rayhangog@gmail.com is currently offline  rayhangog@gmail.com
Messages: 4
Registered: January 2018
Location: New Delhi
Member
Dear,
I am trying to merge IR file with KR file, and PR file with KR+IR files from Peru's latest DHS data. But, in the first step, KR & IR does not match. I am following the below command in Stata;

*Merge child+women file
sort v001 v002 v003 merge
m:1 v001 v002 v003 final2 using "E:DataDHSPeruPEIR6IFL.DTA"

"variables v001 v002 v003 do not uniquely identify observations in the using data r(459);"

While the files from other countries have been merged with the same command. Please help me with this and provide me proper command


* Command for merging child+women and household member file (PR)
*rename in child file (KR+IR) . rename b16 mergeid . sort v001 v002 mergeid
*rename in household member file (PR)
rename hv001 v001
rename hv002 v002
rename hvidx mergeid
sort v001 v002 mergeid

Thank you
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Merging Rwanda DHS 1992 without b16
Next Topic: NFHS 4 Data (Merging of PR and KR data file)
Goto Forum:
  


Current Time: Wed Dec 4 20:06:29 Coordinated Universal Time 2024