The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » STATA codes to merge women and household datasets
Re: STATA codes to merge women and household datasets [message #19139 is a reply to message #18063] Sun, 26 April 2020 00:54 Go to previous message
vpatil is currently offline  vpatil
Messages: 9
Registered: March 2019
Member
Hi

I am trying to merge NFHS4 household and Individual datasets and I have tried all the options discussed in the previous thread on this topic but no success. This is what I get:

merge 1:m hv001 hv002 hv003 hv024 using "/Users/drvaishalipatil/Desktop/DHS datasets/RO1 India/RO12015sort.dta"

Result # of obs.
-----------------------------------------
not matched 1,280,793
from master 591,308 (_merge==1)
from using 689,485 (_merge==2)

matched 10,201 (_merge==3)
-----------------------------------------

The final numbers are wrong. I have tried 1:1, 1:1, m:1, and all different possibilities. Please tell me what am I doing wrong.
 
Read Message
Read Message
Read Message
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: SPA 2012-2017 Senegal
Next Topic: sample weights in women file
Goto Forum:
  


Current Time: Fri Apr 26 02:06:24 Coordinated Universal Time 2024