Beruflich Dokumente
Kultur Dokumente
Data Transformation
Unit Outcomes
1. Able to compute composite score and mean of composite
score using IBM SPSS for window
2. Able to transform the mean composite score to categorical
data using IBM SPSS for window
Mastery Exercise 1
Data Transformation
File to be used for this assignment is Data Transformation Mastery
Exercise 1.
1. Compute the composite score of a1 to a19 [19 items for measuring level of
employees satisfaction with their performance management system
(PMS)]. Name the composite score as a1a19.
2. Compute the mean of the composite score for a1a19. Name the mean of
the composite score as ma1a19 and gives it a label: Satisfaction with
PMS (Y)
3. Categorize the mean of the composite score (ma1a19) into two categories
using mean obtained in question no.1, Part II below as your cut-off point.
Name the categorized variable cma1n19. Assign a value of 1 for score
mean (6.00) and label it Dissatisfied with PMS, and value of 2 for score >
mean (6.00) 2 label it Satisfied with PMS.
A composite score means a total score for all items or variables in a multiple-items
scale. So computing a composite score simply means adding together the scores for
all items or variables in a scale based on a custom formula or predesigned functions
(a predesigned formula) that will automatically perform a specific computation.
Custom Formula
1. Select File from the main menu, and open
2. Look in SPSS Data Files folder and select Data Transformation Mastery
Exercise 1.sav to open the data file.
3. From the SPSS main menus, choose: Transform, then select Compute Variable.
8. Continue adding variables and using the + button to add them together. The
completed custom formula should look like this:
a1+a2+a3+a4+a5+a6+a7+a8+a9+a10+a11+a12+a13+a14+a15+a16+a17+a18+a19
SUM(?,?)
5. Select the first variable a1 and then click to add it to the formula.
6. Highlight the second question mark in the Sum function.
10. Click OK to run the computation by SUM function the default formula.
11. The new variable named a1a19 is added immediately to the right of the variable
d8.
SUM Function The Shortcut Formula
1. Go to the SPSS main menus and choose Transform. Next, select and open
Compute Variable. This opens the Compute Variable dialog box.
SUM(?,?)
4. Select the first variable a1 and then click to add it to the formula.
5. Press the space bar on your keyboard once to create a space after n1 and then type
to.
6. Press the space bar on your keyboard once more to create another space.
7. Select the last variable a19 and insert it in the formula by clicking .
8. Highlight the coma and question mark (,?) and then click to remove
them from the formula. The completed custom formula should look like this:
SUM(a1 to a19)
9. Click OK to execute the computation by SUM function using the shortcut
formula.
10. The new variable named a1a19 is created and added immediately to the right of
the variable d8.
Computing the Mean of a Composite Score
The Mean of a composite score is obtained by dividing the composite score by the
number variables in a multiple-items scale that is analyzed. In the case of a1a19,
which has sixteen variables (a1 through a19) then we need to divide it by 19.
To compute mean of the composite score for a1a19, follow these steps.
1. Select Transform from the main menu and open Compute Variable. This opens
the Compute Variable dialog box.
5. Place your cursor on the division symbol and then click to add it to the
formula in the Numeric Expression text box.
6. Select and click number followed by number to add 19 to the formula. The
formula looks like this.
a1a19/19
8. The new variable named ma1a19 is added immediately to the right of the variable
a1a19.
Other Built-in Functions in SPSS
The function list contains over seventy built-in functions, including:
1. Arithmetic functions
2. Statistical functions
3. Logical functions and others
1. Arithmetic Functions
ABS(numexpr): Absolute value. If the value of variable scle is 4.7,
ABS(scale) results in a value of 4.7, and ABS(scale 5) result in a value of
9.7.
3. Logical Functions
RANGE(test,lo,hi): True if the value of the first argument is winthin the
inclusive range(s) defined by the remaining arguments. The first argument
(test) is usually a variable name. The other arguments are paired of values
defining ranges. Tou can have more than one pair of low and high values.
For example, RANGE(year, 1900, 1949, 1960, 1999) is true if the value of
year is between 1900 and 1949 or between 1960 and 1999, and it is flase for
values 1950 through 1959.
3. Find and select ma1a19 inside the variable list, the composite score to be
categorized.
4. Click to place it inside the Input Variable Output Variable fill in box.
5. Type cma1a19 in the Name box under Output Variable area. This is the assigned
name for the new categorical variable.
6. Click to apply the new name.
7. Click Old and New Values button to open the Recode into Different Variables:
Old and New Values dialog box.
8. Select Range: Lowest through for the Old Value and type 6 in the text box (As
you may remember it is the mean of the composite score for ma1a19).
9. Assign a value of 1 inside the New Value text box (Category 1: 6).
10. Click Add to place the first category in the Old New box.
11. Select Range: through highest for the Old Value and type 6.1 in the text box.
12. Assign a value of 2 inside the New Value text box (Category 2: > 6.01).
13. Click Add to place the second category in the Old New box.
16. The categorical variable created: cma1a19 appears immediately to the right of the
variable ma1a19.
17. Click the Variable View on the view toolbar to open the Variable View window.
18. Scroll down the Variable View Window and find cma1a19.
19. Click the right hand side of the Decimals column cell for the variable cma1a19
once so that this button appears.
20. Click the down arrow button twice. Be sure that the decimal place is 0.
21. Go down the Values column and find the values column cell for cma1a19.
22. Click the right hand side of Values column cell for the cma1a19 variable so that
this button appears and click it once to open the Value Label dialog box.
3. Find and select ma1a19 inside the variable list, the mean composite score to be
categorized.
4. Click to place it inside the Input Variable Output Variable fill in box.
5. Type Kma1a19 in the Name box under Output Variable area. This is the
assigned name for the new categorical variable.
6. Click to apply the new name.
7. Click Old and New Values button to open the Recode into Different Variables:
Old and New Values dialog box.
8. Select Range: Lowest through for the Old Value and type 4 in the text box
(Category 1: 1 through 4).
9. Assign a value of 1 inside the New Value text box (Category 1: 1 through 4).
10. Click Add to place the first category in the Old New box.
11. Select Range: for the Old Value and type 4.01 through 6.99 in the text box
(Category 2: 4.01 through 6.99).
12. Assign a value of 2 inside the New Value text box
13. Click Add to place the second category in the Old New box (Category 2: 4.01
through 6.99).
14. Select Range: through highest for the Old Value and type 7.0 in the text box
(Category 3: 7.00 through 10.00).
15. Assign a value of 3 inside the New Value text box
16. Click Add to place the third category in the Old New box (Category 3: 7.00
through 10.00).
19. The categorical variable created: Kma1a19 appears immediately to the right of
the variable cma1a19.
21. Scroll down the Variable View Window and find kma1a19.
22. Click the right hand side of the Decimals column cell for the variable kma1a19
once so that this button appears.
23. Click the down arrow button twice. Be sure that the decimal place is 0.
24. Go down the Values column and find the Values column cell for kma1a19.
25. Click the right hand side of Values column cell for the kma1a19 variable so that
this button appears and click it once to open the Value Label dialog box.
33. The values and labels assigned to the three categories appear on the Values
column cell for the kma1a19 variable in the data view window.