Gary King Homepage Previous: RECODE Up: RECODE Next: Example:

Format:

RECODE cmd var list=num; where cmd is YVOTE or one of the following issued after the last YVOTE: YVOTE2, XVARS, XVARS2, XNEW. var is the name of the variable you wish to recode. list is a list of numbers separated by commas; these refer to values of var which you read in previously and now wish to recode. num is the single number to which you want the values in list changed to. You may repeat this command any number of times.The numbers in list can be separated by blanks or carriage returns also, but the command looks neater if you use commas.



Gary King 2006-01-07