The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Merging child's malaria results from HH member recode dataset with other child data in Child recode
Re: Merging child's malaria results from HH member recode dataset with other child data in Child recode [message #2903 is a reply to message #2901] Mon, 08 September 2014 16:44 Go to previous messageGo to previous message
kate2
Messages: 15
Registered: May 2014
Member
Thank you very much for this.

I did the merge in SPSS (Still using this until end of the week) and indicated the following:

that I wanted to merge PR to KR rather than the other way round.
that I wanted to add variables rather than cases
that the key variables to match by were v001, v002 and idmerge (my new variable which represents b16 and hvidx in the relevant datasets)
I then also indicated that the the PR file was a keyed table, in order to -- I think --- add the relevant variables from the PR dataset to the existing cases in the KR dataset. The first time I tried the merge by selecting instead that 'both files provide cases; I had very many new cases (about 46,000) added.

Could you confirm that it is correct to specify the PR file as a 'keyed table' and that I haven't caused problems by doing this.

Thank you again for all your help
Kate
 
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: Merging SPA and DHS data
Next Topic: v001 v002 v003 doesnot uniquely identify observation
Goto Forum:
  


Current Time: Fri Nov 8 12:34:28 Coordinated Universal Time 2024