Hi,

I'm new to the site and SPSS. I hope you all can help me.

I have a dataset with two variables that I want to combine. Race (values 1-4) and Hispanic (values 5-6). I don't know how to combine these two variables. I am not trying to add the variables together as that would give me categories outside of 6. How do I combine the two variables?

I think my syntax would look something like this:

IF oldracevariable =1 and Hispanic= 0 newracevariable=1.

IF oldracevariable =2 and Hispanic=0 newracevariable=2.

...

IF oldracevariable=6 and Hispanic=0 newracevariable=6.

Is this correct?