Hi there,
I am currently working with data which has an ID variable with 2 respondent rows (main and partner) each. I have managed to create variables showing the partner respondent and main respondents smoking status, however when i drop all partner respondent rows i loose the partners smoking status. How do i create 2 separate variables which show the main respondent and partner respondents smoking status so that when i remove all partner rows, the information on both main respondent and partner respondent is retained?
Currently i am using the egen (max) command but it doesnt appear to be working the way i would like.
I do hope you can advise.
Best wishes,
Ami
I am currently working with data which has an ID variable with 2 respondent rows (main and partner) each. I have managed to create variables showing the partner respondent and main respondents smoking status, however when i drop all partner respondent rows i loose the partners smoking status. How do i create 2 separate variables which show the main respondent and partner respondents smoking status so that when i remove all partner rows, the information on both main respondent and partner respondent is retained?
Currently i am using the egen (max) command but it doesnt appear to be working the way i would like.
I do hope you can advise.
Best wishes,
Ami
Comment