![divide in spss code divide in spss code](https://methods.sagepub.com/images/virtual/age-in-ess-2016-spss/10.4135_9781526484383-fig15.jpg)
DIVIDE IN SPSS CODE HOW TO
(For a good description of how to use the Syntax window, SPSS's journal and the Log, see Syntax Editor Window on the University Central Michigan's site.)
![divide in spss code divide in spss code](https://en.huca.huji.ac.il/sites/default/files/styles/os_files_large/public/huca/files/fixfile3_spss.png)
DIVIDE IN SPSS CODE WINDOWS
One of the key to syntax writing is the Paste Button which exists in most windows of the Graphic User Interface (GUI). Remember, this is also an example of dummy coding (coding a dichotomous variables with zeros and ones) as would be done for entering a categorical variable into a regression model/analysis.General SPSS Learning Resources Key Items That concludes the recoding of Sex (with label Gender and value labels 1 = Female, 2 = Male) into Sex_RC (with label Gender Recoded and value labels 0 = Female, 1 = Male). Now we can click the "OK" button to finish assigning value labels to the recoded variable. Second, type a one (1) in the "Values" field, and type Male in the "Label:" field, then click the "Add" button. Inside the "Values" field, first type a zero (0) and type Female in the "Label:" field, then click the "Add" button. This will bring up the "Value Labels" dialog box. Specifically, you want to click on the button with three dots. Once in the Variable View, select the "Values" cell of our newly created Sex_RC variable. Next, go back to the Data Window and click on the "Variable View" tab at the lower left corner. The output window should pop up and show the syntax for the recode procedure. Next, click on the "OK" button (or the "Paste" button if you prefer to maintain a syntax file for your records). Then, type a 2 in the "Old Value" "Value" box and typing a 1 in the "New Value" "Value" box then click the "Add" button to bring that re-code to the "Old -> New:" box. Now we can specify the old and new values by typing a 1 in the "Old Value" "Value" box and typing a 0 in the "New Value" "Value" box then click the "Add" button to bring that re-code to the "Old -> New:" box. Next, click on the "Old and New Values" button. Then we can name the output variable Sex_RC with the label Gender Recoded and click the "Change" button, which will move the output variable into the middle box as shown below. Next, we want to move the variable Sex into the "Numeric Variable -> Output Variable:" box.
![divide in spss code divide in spss code](https://prod-qna-question-images.s3.amazonaws.com/qna-images/question/e9943f02-ba6b-4795-9253-8c80e41e726d/156ae3f3-34a8-47ba-b72f-281a73fb8687/ijl9k7_processed.jpeg)
That way we preserve the original data or the data in its original form. To recode an item it is generally recommended that one use the 'Recode into Different Variables.' menu choice of the 'Transform' button on the SPSS task bar. Start off by importing the ExampleData001.sav into the Data Editor window of PASW / SPSS (from this point forward referred to as simply SPSS). Recode Sex this is also an example of dummy coding (coding a dichotomous variable with 0 and 1).