Published on October 22, 2008
USING SPSS TRANSFORMING DATA (COMPUTE)
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.
Transform Compute Dialog Box Type “PARTICPN” in the Target Variable box
Type (p1+p2+p3+p4+p5) in the Numeric Expression box
(p1+p2+p3+p4+p5) Press “OK” to execute the process
The new variable “PARTICPN” has been created. These are the scores of “PARTICPN” for the respondents
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.
Type “MEANPART” in the Target Variable box
Type “(p1+p2+p3+p4+p5)/5” in this Numeric Expression box Press “OK” to execute
Our new variable “MEANPART” has been created These are the scores of “MEANPART” for the respondents
Using SPSS to Transform Variables. ... To perform the computation, select Transform | Compute: The Compute Variable dialog box appears:
SPSS: Common Data Transformations & Case Management Using Compute to create a new variable from a formula ... Using the SPSS Syntax Window for Data ...
How to Use SPSS: Transform or Recode a Variable ... Creating a New or Combined Variable Using SPSS ... and Compute Variables in SPSS ...
This tutorial shows how to compute new variables in SPSS using ... Computing Variables using ... each variable's name? When using SPSS's ...
Transforming Data in SPSS Statistics ... we show you how to transform your data using SPSS Statistics for "square", ... Rename the variable, "Data", ...
Variable Transformations in SPSS: Square root ... Variable Transformation in SPSS 2: ... Normality test using SPSS: ...
SPSS Learning Module Using SPSS functions for ... (test1). COMPUTE t2tr ... last name out of the name variable. We start by using the index function to ...
How can I change a string variable into a numeric variable? ... you need to create a new variable using the compute command. ... If you are using SPSS ...
When recoding variables, ... COMPUTE (variable assignment ... We have found that it may not work properly in SPSS Version 20. If you are using version ...