Posted by
David Marso on
Dec 15, 2011; 8:33pm
URL: http://spssx-discussion.165.s1.nabble.com/Calculating-BDI-score-with-SPSS20-tp5078520p5078609.html
"What is the correct terminology for the calculation I need to do..."
Most would call this a conditional transformation.
KEYWORDS: IF, DO IF (in the FM).
---
data list / Q1 TO Q18 1-18 Q19a 19 Q19b 20.
begin data
31321313321213231411
21123132113121231320
22121212312121222311
13212123322212231320
12332233123313223221
12332444241424443320
end data
value labels Q19b 0 "no" 1 "yes".
* Method 1 .
COMPUTE Total=SUM(Q1 TO Q18,Q19a*(Q19b EQ 0)).
* Method 2 .
COMPUTE TOT1TO18=SUM(Q1 TO Q18).
COMPUTE TOTAL19=TOT1TO18.
IF Q19b=0 Total19=SUM(TOT1TO18,Q19a).
LIST.
Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19A Q19B TOTAL TOT1TO18 TOTAL19
3 1 3 2 1 3 1 3 3 2 1 2 1 3 2 3 1 4 1 1 39.00 39.00 39.00
2 1 1 2 3 1 3 2 1 1 3 1 2 1 2 3 1 3 2 0 35.00 33.00 35.00
2 2 1 2 1 2 1 2 3 1 2 1 2 1 2 2 2 3 1 1 32.00 32.00 32.00
1 3 2 1 2 1 2 3 3 2 2 2 1 2 2 3 1 3 2 0 38.00 36.00 38.00
1 2 3 3 2 2 3 3 1 2 3 3 1 3 2 2 3 2 2 1 41.00 41.00 41.00
1 2 3 3 2 4 4 4 2 4 1 4 2 4 4 4 3 3 2 0 56.00 54.00 56.00
Number of cases read: 6 Number of cases listed: 6
benfranklin23 wrote
I am a novice SPSS user and have (I believe) a fairly straightforward question, but don't know the correct terminology, so have been unable to find an answer online. I apologize in advance if this question is simplistic!
I want to calculate scores for the Beck Depression Inventory (BDI) and already know how to create a variable for the total score (I have numbered responses of 0-3 for each question, and for most questions it is just a matter of adding up the responses) . However, question 19 has two parts. Part A is a normal 0-3 scale, but Part B has a yes or no response. If the response is "yes", part A should not be included in the total score, but if the response is "no" than Part A needs to be added.
What is the correct terminology for the calculation I need to do, and can anyone explain to me how to do it?
Thanks a lot!
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"