* make dummies, method 1 . COMPUTE race1=(race=1). COMPUTE race2=(race=2). COMPUTE race3=(race=3). crosstabs /tables = race by race1 /tables = race by race2 /tables = race by race3. * make dummies, method 2 . DO REPEAT A=race1 race2 race3 /B=1 2 3. COMPUTE A=(race=B). END REPEAT. crosstabs /tables = race by race1 /tables = race by race2 /tables = race by race3.
http://www.ats.ucla.edu/stat/spss/code/dummy.htm