Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I want to perform an analysis on respondents that make at least $20,000 per year. What line do I include in the procedure?

0
Posted

I want to perform an analysis on respondents that make at least $20,000 per year. What line do I include in the procedure?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123