The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Duplicates in IR file when merging
Duplicates in IR file when merging [message #8652] Tue, 24 November 2015 20:25 Go to previous message
nholla is currently offline  nholla
Messages: 13
Registered: May 2015
Member
Hi DHS,

I'm trying to merge the individual to the birth recode files for several countries using the following code in stata, where the birth recode is the "master" file:

merge m:1 v001 v002 v003 using "filename", gen(ir)

However, I'm getting a "does not uniquely identify observations in the using dataset" error. I observed duplicates in terms of v001 v002 v003 for the following files:

Mali 2001
Niger 2000
Niger 1992
Senegal 1998
Senegal 1986
Nigeria 1990

Can multiple women have the same "respondent" in the IR file? If so, how could this occur? For a few of them, I was able to find an additional identifier (such as sconces or snumber). For those surveys I can't find an additional identifier, should I be merging on caseid?

Thanks!
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Child Unique Identifier
Next Topic: Malaria Indicator Survey: Malaria outcomes and women's characteristics
Goto Forum:
  


Current Time: Mon Dec 23 15:19:49 Coordinated Universal Time 2024