Hi,
Hope you are well.
I just joined this forum so I did not quite know how this works. Please let me know if I was in the wrong forum group. Anyway, many thanks for help.
My question is:
I have 3 variables, each of them has the following value:
Var A: 1,2Var B:1,2Var C: 1,2,3,4,5,6,7,8,9I would like to use IF statement:
IF Var A=1 OR Var B=1 OR Var C=2 OR 4 OR 5 OR 8, Then create a new variable and gives a value of 1. Otherwise give the value of 0.
For instance, if Var A=1, Var=2, Var C=1, then create a new variable and gives a value of 1.
If Var A=2, Var B=2, Var C= 1, then create a new variable and gives a value of 0.
I was just wondering how to achieve this with SPSS? I have never used its language and quite confused.
Many thanks and best wishes,
Scarlett
------------------------------
yi wang
------------------------------
#SPSSStatistics