I want to perform an analysis on respondents that make at least $20,000 per year. What line do I include in the procedure?
ANSWER – This is essentially the same as the previous problem. The difference being that we’re selecting multiple categories, instead of just one. Suppose the Income variable is coded as: 1=Under 10,000 2=10,000 – 19,999 3=20,000 – 29,999 4=30,000 – 39,999 5=40,000 or more. To select respondents making 20,000 or more, we need to select response codes 3, 4 and 5. Any of the following lines could be used to solve the problem: IF Income>2 THEN SELECT IF Income>=3 THEN SELECT IF Income>=3 AND Income<=5 THEN SELECT IF Income=3 OR Income=4 OR Income=5 THEN SELECT IF Income="3/4/5" THEN SELECT When using the slash to indicate a series of OR statements (last example), quotation marks are required for both alpha and numeric-type variables.