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
Use "ask if" command depending on the response to the previous question of the previous dictionary in menu program
Re: Use "ask if" command depending on the response to the previous question of the previous dictionary in menu program
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
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
Re: Use "ask if" command depending on the response to the previous question of the previous dictionary in menu program
Thank you. Yes, the first one.
Re: Use "ask if" command depending on the response to the previous question of the previous dictionary in menu program
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
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