The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Couples and HIV merge in STATA
Re: Couples and HIV merge in STATA [message #9536 is a reply to message #3271] Mon, 11 April 2016 01:01 Go to previous message
lberes
Messages: 4
Registered: April 2016
Member
Thank you for this helpful code. I am wondering why drop if _merge==2 allows us to 'keep only women'. I thought that any combination of v001, v002 and v003 that came from either the couples or the HIV data could only be a woman. How does dropping that combination if it only came from the HIV dataset - and was not in the couples data set - exclude men? In other words, what does drop if _merge==2 do for us in this code? Thank you!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mother's and Father's occupation
Next Topic: Merging Birth and Household Recodes
Goto Forum:
  


Current Time: Sun Dec 22 21:54:40 Coordinated Universal Time 2024