The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » STATA code merge IR and MR into HR files (STATA code merge IR and MR into HR files)
Re: STATA code merge IR and MR into HR files [message #19536 is a reply to message #19525] Tue, 07 July 2020 15:36 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3172
Registered: February 2013
Senior Member

Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

When you do a merge, Stata constructs a variable called "_merge". Note the underscore before the word. Its values are mainly 1, 2, 3 and are defined in "help merge". You need a line "drop _merge" before you do a second merge.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linking mothers to children in the IR file
Next Topic: Merge DHS dataset
Goto Forum:
  


Current Time: Sun Oct 20 15:08:34 Coordinated Universal Time 2024