The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » variables hv001 hv002 hv003 do not uniquely identify observations in the using data
variables hv001 hv002 hv003 do not uniquely identify observations in the using data [message #2562] Sat, 12 July 2014 10:58 Go to previous message
nnalo is currently offline  nnalo
Messages: 5
Registered: July 2014
Member
Hello,
I am working with Nigeria 2013 DHS.
I am trying to merge male recode with household members recode in STATA.
I followed the procedure below but STATA reported with-- variables hv001 hv002 hv003 do not uniquely identify observations in the using data---

Steps:
1. open the household member file and sort hv001 hv002 hv003 and then save this file

2. open male file and do:


gen hv001 = mv001

gen hv002 = mv002

gen hv003= mv003

sort hv001 hv002 hv003

merge 1:1 hv001 hv002 hv003 using "THE NAME OF THE FILE WITH SORTED HOUSEHOLD MEMBER DATA"

keep if _merge==3

save "NEW NAME"

Please help me out here.
Thank You.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: variables hv001 hv002 hv003 do not uniquely identify observations in the using data
Next Topic: Merging SPA and DHS data
Goto Forum:
  


Current Time: Thu Apr 25 03:09:31 Coordinated Universal Time 2024