The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » How to merge IR, KR and HR files in stata (merging dataset)
How to merge IR, KR and HR files in stata [message #19867] Mon, 24 August 2020 02:00 Go to previous message
Kaung Suu is currently offline  Kaung Suu
Messages: 2
Registered: August 2020
Member
Dear DHS expert,

May I request your kind guidance on how can I merge IR, KR, and HR files in STATA?
Currently, I am using the following command. But the total observations are multiplied.

use "HR"
rename hv001 v001
rename hv002 v002
merge m:m v001 v002 using "KR"
drop _merge
merge m:m v001 v002 using "IR"

Thank you and looking forward to your kind reply.

Best,
Kaung Suu
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Which DHS File should I use?
Next Topic: Weighing countries in a multi-country study
Goto Forum:
  


Current Time: Sun Dec 22 21:19:24 Coordinated Universal Time 2024