Therefore, you can't address a range of original and recoded variables by using the TO ALL keywords. Second, the new variables are appended to the end of the active dataset. First, note that the new variables don't have any dictionary information at all. This example shows some disadvantages of recoding into new variables. A crosstab confirms that categories 1 and 2 have been merged into 2. *Note: rec_v2 doesn't have labels or missing values defined yet. crosstabs v2 by rec_v2 /cells count /missing include. We'll run FREQUENCIES right before and after recoding so we can check the results. All values that are not 1 are left unaltered. This is as simple as recode v1 (1 = 2).The screenshot illustrates the effect. We'll do this by changing all values of 1 into 2. In this example we'll merge categories 1 and 2 of a variable v1. You'll soon notice that recoding from syntax is very simple and way, way faster than from the GUI. SPSS Recode Example 1įor quickly getting very proficient with RECODE it's recommended you follow along with the examples. This tutorial walks you through its main options, best practices and pitfalls. It comes in handy for merging categories, dichotomizing continuous variables and some other tasks. SPSS RECODE replaces data values with different values. SPSS RECODE – Simple Tutorial report this ad By Ruben Geert van den Berg under SPSS A-Z
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |