set term
terminates respondent interviews. It is the standalone widget form of the termif
and termtext
tags. This is useful for terminating respondents on a page where there are no widgets to which the termif
tag can be added, as in cases where a termination should occur based on responses to more than one question. The set term
widget is also useful for programming termination logic based for boosts (for brands as an example).
Syntax
The set term
widget requires an alphanumeric ID (no spaces). Include a text
tag, which provides a description for the reporting applets, and a condition
tag that defines the condition that, if triggered, will terminate the respondent.
set term: Term_ID text: Termination description that appears in reports condition: Optional Boolean condition which executes termination if true
Examples
Basic example on multiple questions
Terminations can be based on answers to multiple questions. When this is the case, a set term
widget is often more clear than using the termif
tag. The example below shows that young people who live in the Northeast are terminated.
3. What is your age?
type: radio
1. Under 25
2. 25-44
3. 45 or older
4. In what region do you live?
type: radio
1. Northeast
2. South
3. Midwest
4. West
set term: young_NE
condition: anyChecked($Q3,1) and anyChecked($Q4,1)
text: Young people in the Northeast
Multiple question termination using mathematical signs
Conditions can use mathematical operators if need be. The below example terminates if less than 2 of the questions QA1A, QA1B, QA1C are answered incorrectly. Each of the conditions in the set term
, if answered correctly, is equal to '1'. Therefore if 2 or 3 of the questions are answered correctly, then the respondent will continue as 1+1+0 == 2 and 1+1+1 > 2. If only one of those three questions is answered correctly, then the respondent will terminate as 1+0+0 < 2.
setlist: COLORS 1. Black 2. Blue 3. Green 4. Orange 5. Purple 6. Red 7. Violet 8. Yellow A1A. What color is a ripe tangerine? type: radio optsfrom: COLORS A1B. What color is a ripe banana? type: radio optsfrom: COLORS A1C. What color is a ripe strawberry? type: radio optsfrom: COLORS set term: A1ABC condition: (anyChecked($QA1A,4) + anyChecked($QA1B,8) + anyChecked($QA1C,6)) < 2 text: A1ABC | Ripe Colors
Boost example
At times there will be a 'boost' when the survey is in field, meaning one type of respondent is getting through (e.g., only respondents who have eaten at Arby's in the last 3 months). Survey Programmers (SPs) can implement a term point using the standalone set term
when initially programming so the switch from representative or augment to boost sampling is efficient and clean.
OSAMP. Oversample Identifier - Used when simultaneously fielding with Rep/Aug via a separate oversample invite link
type: radio
invisible: y
chapter: panel_data
cvalue: url_param('os') || 0
0. Sample
1. Over sample
SAMP. Sample type (Cap 1 assigns 2. Cap 1 + 2 assigns 3)
type: quotas
selectby: weight,counts
chapter: S
1. Rep. sample {weight: 100}
2. Augment {weight: 10}
3. Over sample {weight: 1 + $QOSAMP*100}
1. Which of the following fast food restaurants have you eaten at?
type: radio table
1. Never
2. In the last year
3. In the last 3 months
rows:
1. McDonald's
2. Arby's
3. Burger King
4. Wendy's
5. KFC
2. Why have you eaten at the following restaurants in the last 3 months?
type: text table
rowsfrom: T1.rows {if anyChecked($Q1R[id],3)}
set term: boost_term
condition: anyChecked($QSAMP,3) and noneChecked($Q1R2,3)
text: Boost | Did not eat at Arby's in last three months
Comments
0 comments
Please sign in to leave a comment.