Goodmorning,
I have a question about my SPSS database. I have 50 (DP 1 – DP 50) questions about 'Depression (DP)'. I want my answers categorized within 5 'Depressionstyles (DPS)'. (DPS 1 – DPS 5). All 50 questions are answered with an A (1) or B (2). In the end, 50 points are divided between the 5 styles. Because of that, the scores need to be cumulative.
In the Syntax, I now have:
IF (DP1 = 1) Depressionstyle1=1.
EXECUTE.
IF (DP1 = 2) Depressionstyle 2=1.
EXECUTE.
IF (DP2 = 1) Depressionstyle 3=1.
EXECUTE.
IF (DP2 = 2) Depressionstyle 4=1.
EXECUTE.
IF (DP3 = 1) Depressionstyle 5=1.
EXECUTE.
IF (DP3 = 2) Depressionstyle 2=1.
EXECUTE.
etc.
At question 3, 'Depressionstyle2' shows up again. This will be the case with all the styles in the upcoming questions, of course. I need to have a cumulative number. The value of 'Depressionstyle2' should be 2,00 instead of 1,00. I don't know how I adjust the formula, so the number will become cumulative.
Can someone help me please?
------------------------------
Rowan Noaber
------------------------------
#SPSSStatistics