Download - Using Spss Transforming Variable - Compute
![Page 1: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/1.jpg)
USING SPSS
TRANSFORMING DATA
(COMPUTE)
![Page 2: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/2.jpg)
Transform Compute
![Page 3: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/3.jpg)
Transform Compute
This is to compute (i.e. creating) a new variable from the existing variables in the data file.
Now, we are going to compute a new variable “Participation” form the variables p1, p2, p3, p4, and p5
(Assuming items “p1 – p5” are questions related to participation in decision-making)
Note: SPSS allows a maximum of eight characters in a variable name, so we are going to use “PARTICPN” for “Participation”.
The following slides will explain how this is done.
![Page 4: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/4.jpg)
Transform Compute Dialog Box
Type “PARTICPN” in the Target Variable box
![Page 5: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/5.jpg)
Type (p1+p2+p3+p4+p5) in the Numeric Expression box
![Page 6: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/6.jpg)
(p1+p2+p3+p4+p5)
Press “OK” to execute the process
![Page 7: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/7.jpg)
The new variable “PARTICPN” has been created.
These are the scores of “PARTICPN” for the respondents
![Page 8: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/8.jpg)
We can also compute our new variable by calculating its mean.
To do this we need to ask SPSS to divide the sum of “p1+ p2 + p3 + p4 + p5” by 5 (because there are 5 items)
Lets do this again, but this time we want the mean for the five items related to “Participation”.
Since we already have a variable “PARTICPN” in our data, we need to choose a different variable name. I’m going to use “MEANPART” this time.
![Page 9: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/9.jpg)
Transform Compute
![Page 10: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/10.jpg)
Type “MEANPART” in the Target Variable box
![Page 11: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/11.jpg)
Type “(p1+p2+p3+p4+p5)/5” in this Numeric Expression box
Press “OK” to execute
![Page 12: Using Spss Transforming Variable - Compute](https://reader035.vdocuments.us/reader035/viewer/2022062220/55893067d8b42a48608b4691/html5/thumbnails/12.jpg)
Our new variable “MEANPART” has been created
These are the scores of “MEANPART” for the respondents