Use "ask if" command depending on the response to the previous question of the previous dictionary in menu program

Discussions about CSEntry
Post Reply
Nikola
Posts: 27
Joined: December 24th, 2021, 4:30 am

Use "ask if" command depending on the response to the previous question of the previous dictionary in menu program

Post by Nikola »

How to use "ask if" command depending on the response to the previous question of the previous dictionary in menu program.

There are two variables in the interviewer menu.
1. Household questionnaire (launch household dictionary)
2. Individual questionnaire (launch individual dictionary)
※ The household questionnaire will be conducted before the Individual questionnaire.

In the individual questionnaire, I would like to ask some questions in case there is a minor (age under 18) in the household questionnaire.

How to revise the below logic?

Preproc
ask if count(HOUSEHOLD_ROSTER where AGE in 0:17) > 0
sherrell
Posts: 400
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Use "ask if" command depending on the response to the previous question of the previous dictionary in menu program

Post by sherrell »

Your individual-level questionnaire needs access to the HH-level data. Therefore, it would have to be added to your individual-level application, and you would have to do a loadcase in order to make this check.

Could I clarify: generally an individual-level questionnaire asks questions of a specific person--so in your scenario, do you want to ask the < 18 Qs only to persons who are under 18? (what I'm expecting) Or do you want to ask these <18 Qs to anyone in a HH where a person < 18 is found? (the less typical scenario that you seem to be asking).

Sherrell
Nikola
Posts: 27
Joined: December 24th, 2021, 4:30 am

Re: Use "ask if" command depending on the response to the previous question of the previous dictionary in menu program

Post by Nikola »

Thank you. Yes, the first one.
sherrell
Posts: 400
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Use "ask if" command depending on the response to the previous question of the previous dictionary in menu program

Post by sherrell »

Ok, so if you're asking the question on the individual level, is the person's age available? If not, you'll have to do a loadcase to get it.

If it is/once it is, then your logic should be asking about that person specifically. That is,

PROC MYQUESTION
preproc
ask if AGE in 0:17

If you're referencing data from a HH roster, then you'll have to provide the occurrence number, which you should have somewhere.

Sherrell
Post Reply