Posted by
Poes, Matthew Joseph on
Dec 15, 2011; 8:36pm
URL: http://spssx-discussion.165.s1.nabble.com/Calculating-BDI-score-with-SPSS20-tp5078520p5078722.html
I think below would potentially be problematic if there was missing data. The problem you can run into is that missing is also not equal to yes.
I would probably handle it this way.
Do if Q19b="no".
Compute Q19a_r=Q19a.
End if.
Or
If Q19b="no" Q19a_r=Q19a.
Note that "No" is often coded as a number, if it actually says No in the data set and is thus a string variable, you would need to use the " around the NO. However, since it only can read the string exactly as it's written, I typically recode these kinds of string variables and do a check to be sure that they are all correctly recoded to a new indicator variable (typically 0=No and 1=Yes).
Another solution that would use the below method acceptably is to do a recode.
Recode Q19b ("yes"=0)("no"=1) into Q19bx.
Compute q19a_r=Q19a*Q19bx.
All of these approaches do the same thing. You just need to watch if a specific approach might include a group you don't want to include, such as those missing data.
Matthew J Poes
Research Data Specialist
Center for Prevention Research and Development
University of Illinois
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]] On Behalf Of SPSS Giesel
Sent: Thursday, December 15, 2011 2:21 PM
To:
[hidden email]
Subject: Re: Calculating BDI score with SPSS20
COMPUTE q19score = (q19b NE "yes") * q19a.
Untested. Hope that helps.
Good Luck,
Mario
==================
Mario Giesel
Im Kirchwinkel 12
52499 Baesweiler
Tel. 02401 / 693 9040
==================
Am 15.12.2011 um 20:42 schrieb benfranklin23 <
[hidden email]>:
> 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!
>
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Calculating-BDI-score-wi> th-SPSS20-tp5078520p5078520.html Sent from the SPSSX Discussion
> mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
>
[hidden email] (not to SPSSX-L), with no body text except
> the command. To leave the list, send the command SIGNOFF SPSSX-L For a
> list of commands to manage subscriptions, send the command INFO
> REFCARD
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD