List questions and List manipulation
Cxoice also provides List as a question type for creating Lists which can then be used in other questions. The list can just be a list of items, or you can include a condition where an item will only be included in the list if the condition is true.
For instance
1. Apple Fruits=1
2. Banana Fruits=2
3. IronBru Soda=1
4. Corn Flakes Cereal=4
5. Bread
This will generate a list depending on the Fruits, Soda and Cereal question, but will maintain the code values for the items.
Lists are never shown on screen, so you can include notes in the Question/Text area if required.
The list question can be used anywhere there is a code list required, by making the first item:
GETLIST(myList)
or
%%LIST(myList)
(for historic compatibility reasons, both are valid and work in the same way)
Using calculated lists
For more powerful uses of lists for ‘list folding’ where selections from one list are used to show a filtered list for the next question, you can use GETLIST()to get the list of selected answers to a previous list-based answer.
For instance if you have a question called aware that asks
“Which brands have you heard of?”
And then you want to ask
“Which brands have you seen advertising for?”
Then logically, respondents should only be asked about brands they have heard of.
In which case you can set up the advertising question so that the first item in its code list is
GETLIST(awareof)
Sidenote: Technically you should also have a skip or routing question so that advertising is only asked if COUNT(awareof)>=2
GETLIST can also be used with an optional parameter
GETLIST(awareof,all) will get all answers from awareof
GETLIST(awareof,include) will get all positively selected item from awareof (default)
GETLIST(awareof,exclude) will get all non-selected items from awareof
Calculated lists from grids
For a grid type question where you want rows that have been given a particular rating you can use the following to get a list of rows
GETGRIDLIST(mygrid, 1|2)
which is any rows where codes 1 or 2 have been selected.
Lists from conjoint designs (advanced topic)
In Cxoice, a Conjoint Design question also generates a list of products. Consequently
%%CONJOINT(conjointdefn,1)
would get a list of product profiles for task one from the conjointdefn definition question. This can be then used with a Single Block question or a Single Template question to create a standard choice task, or used with other question types such as constant sum, multi-numeric or multiples or hotcold scales to generate non-traditional methods of getting choice-based data.