FAQ/recode - CBU statistics Wiki

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
Finzd thee wrang lelters ino eacuh wosrd

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.