I know this has been posted before, but I can't figure out how to get the syntax working for me in this case. I essentially need to create a new variable out of 4. It is one question on a questionnaire, but it allowed for multiple responses, all different entries on SPSS (d7a, d7b, etc.). I need to combine the 4 variables into 1, but only if the respondents answered 2, 3, or 4 for any of them.
So how do I create a new variable if d7a-d = 2,3,4 d7_Index = 1? Thanks!