There are three different methods for creating quotas. They can be programmed:
- directly within a question using the
quotas: y
tag, - directly within a question using the
create quota
tag, or
- as a separate variable using
type: quotas
.
In addition to the information on the specific quota creation types found on each of the pages below, Common quota tags will provide a list of several standard tags associated with the quota setup.
'quotas' tag
The quotas: y
tag is useful if the question options are the same as the quota groups you need to create and the same conditions will apply. In the example below a Q1_QUOTA variable will be created.
1. What is your gender? type: radio quotas: y 1. Male 2. Female
For more information and additional examples, see quotas tag.
'create quota'
This tag uses the specified value as the ID to create a quota variable. Unlike quotas: y
, the create quota
tag requires two inputs, a quota variable ID and a quota variable description.
1. What is your gender identity?
type: radio
create quota: QGENDER [1,2] { desc: Gender Male/Female }
create quota: QGENDER2 { desc: Gender All }
1. Male
2. Female
97. Other
For more information and additional examples, see create quota tag.
'type: quotas'
If there is a new list or different conditions driving what quota group(s) should be assigned, using a separate variable allows for flexibility.
1. What is your gender? type: radio 1. Male 2. Female 2. Which of these includes your age group? type: radio 1. 18-29 2. 30-39 3. 40-49 4. 50-59 5. 60 or older GENDERAGE. Gender quota type: quotas 11. Male 18-49 { if anyChecked($Q1,1) and anyChecked($Q2,1,2,3) } 12. Male 50 or older { if anyChecked($Q1,1) and anyChecked($Q2,4,5) } 21. Female 18-49 { if anyChecked($Q1,2) and anyChecked($Q2,1,2,3) } 22. Female 50 or older { if anyChecked($Q1,2) and anyChecked($Q2,4,5) }
For more information and additional examples, see Standalone quotas.
Comments
0 comments
Please sign in to leave a comment.