Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data Transformations COMPUTE and RECODE Commands.

Similar presentations


Presentation on theme: "Data Transformations COMPUTE and RECODE Commands."— Presentation transcript:

1 Data Transformations COMPUTE and RECODE Commands

2 We generally do data transformations when information is not collected in a format suitable for analysis using inferential statistics.

3 COMPUTE Use when you what to perform a mathematical operation on a continuous variable and assign the resulting value to a NEW continuous variable Add Subtract Multiply Divide Calculate a series of operations

4 COMPUTE

5

6 RECODE into the same variable Use when you want to change the VALUES of a categorical or continuous variable. For example, reverse code situations (i.e., change value “1” of variable QU2 into value “5” of variable QU2) IMPORTANT—Once values are changed, the change is PERMANENT. That is, the original values are lost.

7 RECODE into the same variable

8

9

10 RECODE into a different variable Use when you want to change the VALUES of a categorical or continuous variable and assign them to a NEW categorical or continuous variable. For example, collapse categories (i.e., change values “1-7” of variable QU2 into values “1-4” of variable NQU2)

11 RECODE into a different variable

12

13

14 RECODE a string variable to a numeric variable Use when you want to change categorical values expressed as WORDS into continuous values For example, changing “never” into “9.00” IMPORTANT—The word must be typed EXACTLY how it appears in the data editor

15 RECODE a string variable to a numeric variable

16

17

18 Tutorial Links COMPUTE RECODE into same variable RECODE into different variable RECODE string variable


Download ppt "Data Transformations COMPUTE and RECODE Commands."

Similar presentations


Ads by Google