List items can be shown in a randomized order to minimize respondent bias. Additionally, items can be anchored in specific positions. When the randomize tag is used on a list, all elements are displayed in random order. When the anchor decorator is added next to a list element, the item remains fixed in its position, regardless of any other ordering applied.
set list: COLORS
randomize: y
1. Red
2. Orange
3. Yellow
4. Green {anchor: y}
5. Blue
6. Purple
7. Pink
1. Colors listed in random order, but green is anchored in place.
type: radio
optsfrom: COLORS
'randomize' tag
- The
randomizetag accepts 'y' and 'n' inputs. -
randomize: yis the functional equivalent oforder: [*]. - The
randomizetag may be applied at either the list level or question level. If applied at the list level using a set list, the same randomized order will occur for a respondent for every question (or table) where the list is used. When therandomizetag is included inline at the question level, all list elements will be randomized for that question only. - The
randomizetag can be paired with theanchordecorator to keep specific options anchored in their list positions. - The
randomizetag can be used as a decorator or as a column header in a sheet to randomize collections organized by collection headers. - Applying the
randomizetag to a group randomizes both its questions and their option sets.
'anchor' decorator
- The
anchordecorator accepts 'y' and 'n' inputs. -
anchor: yfunctions the same as using shorthand notations with '^' or '$' in theordertag. - The
anchordecorator may be applied at either the list level or question level. If applied at the list level using a set list, the list element is anchored in every question (or table) where the list is used. When theanchordecorator is included inline at the question level, the list element is anchored for that question only. - The
anchordecorator can be used as a column header in a sheet to anchor list items grouped by collection headers. - If a question or table uses the
randomizeorordertag and also includes exclusive options or autoother options, these options are automatically anchored in their positions. Theanchordecorator is not needed. You can modify this behavior with the survey'sset defaults.
Additional examples
Using 'randomize' at the question level
You can apply randomize: y directly to a question widget to randomize the answer options for that question only.
2. Colors listed in random order.
type: radio
randomize: y
1. Red
2. Orange
3. Yellow
4. Green
5. Blue
6. Purple
7. Pink
Randomizing rows and columns in a table
Similarly, the randomize: y tag can be used inline on a table. In the example below, note that the randomize tag is placed after the rows and columns tags to clearly define which elements to randomize.
3. Select the material wanted for each piece of clothing per season.
type: radio table
randomize: y
1. Cotton
2. Wool
3. Blend
rows:
randomize: y
1. Winter
2. Spring
3. Summer
4. Fall
columns:
randomize: y
1. Socks
2. Pants
3. Shirts
If you program a table with listcalls like rowsfrom and colsfrom and also want to randomize options at the question level, use roworder and colorder instead. See Ordering tables: rows, columns, and options for more information.
Using 'randomize' and 'anchor' with collection headers
You can randomize items within collections (groups) and anchor individual items as needed. In the ICECREAMS list below, items within the "Cream-based" group are randomized, as are those within the "Chocolate-based" group. However, Dark Chocolate will always appear as the last flavor in the "Chocolate-based" group.
set list: ICECREAMS
100. Cream based {collection header: y} {randomize: y}
1. Fior di latte
2. Cookies and Cream
3. Vanilla
200. Chocolate based {collection header: y} {randomize: y}
4. Choco-cookie crunch
5. Rocky Road
6. Milk chocolate
7. Dark chocolate {anchor: y}
4. What is your favorite ice cream?
type: checkbox
optsfrom: ICECREAMS
Removing default anchors for autoothers and exclusive options
By default, randomize and order keep exclusive and autoother options anchored in place. To allow autoother options to move, add anchor autoother: n to the set defaults or the question widget. Similarly, use anchor exclusive: n for exclusive options.
1. Which of the following fruits have you eaten?
type: checkbox
randomize: y
anchor autoother: n
1. Apple
2. Orange
3. Banana
4. Pear
5. Grapes
97. Other {autoother: y}
Tip! See Default survey settings (set defaults) to learn how to apply the anchor autoother and anchor exclusive tags directly to the survey's set defaults.
Comments
0 comments
Please sign in to leave a comment.