I am attempting to create a total score using a series of true/false questions. Some of the questions are positively coded and some are negatively coded so that a true score on some results in an increased total score and an false score on some other questions will result in a higher total score. I am aware that I could recode the variables independently but I am hoping that there is another way than adding a 50 new variables to my SPSS file.
I am getting errors with the following syntax related to an expectation of a equal marks for which I assume is because it is expecting a statement like "TOTAL = 2" instead of an additive function. I am hoping this is an easy and quick fix I just can't find the syntax for.
/* 1 = True, 2 = False*/
compute Total = 0.
if Q1 = 2 TOTAL = 1 + TOTAL.
if Q2 = 1 TOTAL = 1 + TOTAL.
Help me Obi Wan Kenobi. you're my only hope.
Thanks for the help