Log In/Create Account

How do I use the Recode Syntax analysis tool?

The Recode Syntax tool is found with the online analysis utilities. Users must first define a variable name to generate the recode. In this example, we are choosing to create a recode that cross-classifies race and age. It creates a dummy variable that takes on the value of 1 if the respondent identifies themselves as Black and over 18 years of age.

Screen Shot

Users can specify the content of the recode with a series of dropdown variables, logical operators, and mathematical functions. The choices are available in the dropdown values linking the expressions.

Screen Shot

To add additional variables, click the "Add" button on the right side of the screen. This will continue to add variables with which the user can build recodes. Below, race is added to age to generate the recode of interest. Users must complete both sides of the recode, in order to create two sets of recode statements.

Screen Shot

Users can continue to add recodes to the syntax by clicking the "Recode Syntax" button.

Users must then choose a statistical package of choice and click the "Submit Code" button. The code will then appear in the window and can either be printed or downloaded. Again, this tool does not generate recodes but rather the software code needed to generate them. They must be run in the appropriate software using the dataset from which they are generated.

Screen Shot

Creative Commons License This work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.