The data I am analysing, has a variable with depression scores of a family member and another variable with the relationship of the person (M is Mother, F is Father).
I need to create a new variable with only the scores for mothers.
Attached is a sample from the dataset which, includes over 20000 participants.
I was thinking of something like this..generate mum_EPDS3 = EPDS_Score3 if EPDS3_relation = "M", but it doesn’t work.
I would appreciate any help you could give me.
Thanks,
Karen
I need to create a new variable with only the scores for mothers.
Attached is a sample from the dataset which, includes over 20000 participants.
I was thinking of something like this..generate mum_EPDS3 = EPDS_Score3 if EPDS3_relation = "M", but it doesn’t work.
I would appreciate any help you could give me.
Thanks,
Karen

Comment