The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » Couples Recode and polygamy
Re: Couples Recode and polygamy [message #10001 is a reply to message #9995] Wed, 15 June 2016 10:07 Go to previous messageGo to previous message
aligazan
Messages: 24
Registered: June 2014
Location: UK
Member
Dear Trevor

Thank you very much for your reply.

I am using SPSS and the syntax that I used is below - maybe I have made an error?

Would you expect the couples recode file to match men with their 1st or current wife?

Thank you so much for your help,

Janet

GET FILE='MLMR53FL.SAV'.
SORT CASES by MV001 MV002 MV034$1.
save outfile = "MLmen.sav".

GET FILE='MLIR53FL.SAV'.
SORT CASES by V001 V002 V003.
save outfile = 'MLwomen.sav' / keep v001 v002 v003 G102.

MATCH FILES /file='MLmen.sav' /table='MLwomen.sav'
/rename v001 = mv001 v002 = mv002 v003 = mv034$1 G102=JG102$1
/BY MV001 MV002 MV034$1.
save outfile = "MLmen+1stwife.sav".
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Child Labour
Next Topic: Husband's unemployment
Goto Forum:
  


Current Time: Mon Jul 22 19:15:26 Coordinated Universal Time 2024