Reddit, I need SPSS recoding help using syntax?

Hi Reddit, I am trying to turn a string variable (with many categories) into a numeric variable (with only few categories).

i will use the following scenario to explain what I am trying to accomplish. Say I have 20 stores (the string variable) across and what to categorize them into 5 numerical categories. Using spss syntax, how would I categorize 5 stores (the string variable) to = 1 in a numerical variable, categorize 5 stores to =2, etc...

Thank you in advance for any of your help

Posted May 31, 2011, 11:09 PM UTC

72
Loading comments…