FAQ/recode - CBU statistics Wiki

You can't save spelling words.

Clear message
location: FAQ / recode

Swapping over levels on a categorical variable in SPSS

This is most quickly done using the syntax below which can be adapted as necessary. In this example groups 1 and 3 are swapped in the OCCASION variable and saved into a new variable called OCCASION2.

RECODE OCCASION (3=1) (2=2) (1=3) INTO OCCASION2.
EXECUTE.

None: FAQ/recode (last edited 2014-03-07 12:28:22 by PeterWatson)