The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » husbands to their wives
husbands to their wives [message #16299] Mon, 10 December 2018 10:13 Go to previous message
memon_suma@yahoo.com
Messages: 15
Registered: April 2018
Member
Hi,
I am trying to asses the number of infant deaths experienced by women who ever had children in Pakistan. I need some determinants for my study of which husband's working status is also required as a control variable. I want to merge MR and IR file and use the code as follows;

use PKMR61FL.DTA, clear
rename mv001 v001
rename mv002 v002
rename mv003 v034
sort v001 v002 v034
keep v001 v002 v034 mv714
save mrir.dta, replace
use PKIR61FL.DTA
sort v001 v002 v034
merge m:1 v001 v002 v034 using mrir.dta

My women data has 13558 observations, but after executing the coded above it returns 13928 observations. The merge shows 2798 entries merged.
I am not being able to understand the process here. I mean I suppose the number of observations in the merged file to be the same as women's?
Please help!
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linking variables from SA 1998 HR, PR & IR files to Adult Health respondents
Next Topic: How to merge PR & CR files in R
Goto Forum:
  


Current Time: Thu Dec 19 01:02:07 Coordinated Universal Time 2024