Hi all. I'm trying to create a variable (newvar) from six variables (var1, var2, var3, var4, var5, var6). Positive endorsement of any of the six will mean newvar=yes (even if it means positive endorsement of one and missing data for the other 5). Currently, my code is : if var1=1 OR var2=1 OR var3=1 OR var4=1 OR var5=1 OR var6=1 THEN newvar=1; If there is not a positive endorsement for any item and failure to answer all 6 items, then they must be considered missing. Negative endorsement of all six items will result in newvar=0. I'm seeking help for this code. Any suggestions will be appreciated. Var1 Var2 Var3 Var4 Var5 Var6 newvar Yes Missing Missing No No No yes Missing No No No No No Missing No No No No No No No No No No No No Yes yes
... View more