I would like to create a variable, taking into account the person's income, number of children, and the total number of people living in one household.

The idea would be that if the respondent has not directly reported his income (sd13a), but has answered the question on the income categories (sd13b), the information should be taken from there. In Stata, this would look like this:

* Substitute sd13a with categories replace sd13a = sd13b if sd13a == . & sd13b != .

Does anyone know what the syntax in SPSS might look like? Thanks a lot for your help.

More Carina Hartz's questions See All
Similar questions and discussions