12
USING SPSS TRANSFORMING DATA (COMPUTE)

Using Spss Transforming Variable - Compute

Embed Size (px)

Citation preview

Page 1: Using Spss Transforming Variable - Compute

USING SPSS

TRANSFORMING DATA

(COMPUTE)

Page 2: Using Spss Transforming Variable - Compute

Transform Compute

Page 3: Using Spss Transforming Variable - 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.

Page 4: Using Spss Transforming Variable - Compute

Transform Compute Dialog Box

Type “PARTICPN” in the Target Variable box

Page 5: Using Spss Transforming Variable - Compute

Type (p1+p2+p3+p4+p5) in the Numeric Expression box

Page 6: Using Spss Transforming Variable - Compute

(p1+p2+p3+p4+p5)

Press “OK” to execute the process

Page 7: Using Spss Transforming Variable - Compute

The new variable “PARTICPN” has been created.

These are the scores of “PARTICPN” for the respondents

Page 8: Using Spss Transforming Variable - Compute

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

Transform Compute

Page 10: Using Spss Transforming Variable - Compute

Type “MEANPART” in the Target Variable box

Page 11: Using Spss Transforming Variable - Compute

Type “(p1+p2+p3+p4+p5)/5” in this Numeric Expression box

Press “OK” to execute

Page 12: Using Spss Transforming Variable - Compute

Our new variable “MEANPART” has been created

These are the scores of “MEANPART” for the respondents