The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » HIV » recoding v034X (line number fo husband)
Re: recoding v034X (line number fo husband) [message #9918 is a reply to message #9853] Mon, 06 June 2016 11:06 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 795
Registered: January 2013
Senior Member
What are you trying to do exactly? Why do you need to reshape v034x from wide to long? The only reason I can see for doing this would be to create a couples file where you match husbands and wives together. If that is the case, then, after reshaping v034x, you can simply drop all cases where v034x==. This will leave you with a file of women and men that you can then merge with the original file (v001 v002 v003 in the original file will match with v001 v002 v034x in the reshaped file). You will also have to do quite a lot of either renaming or cloning of variables for the characteristics of the couples so you have separate variables for each half of the couple.

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: General information on HIV and GIS
Next Topic: Bangladesh 2011 dataset
Goto Forum:
  


Current Time: Sun May 19 13:09:19 Coordinated Universal Time 2024