Randomization
Please note that Surveys built-in randomization is not compatible with the advanced radomization codes for matrices provided in this tutorial. To enable them, import the library as described in the Getting started section.
Once you have completed the main steps, you will need to modify the parameters in the provided template snippet to apply the changes.
question_code
The code of the multiple choice matrix you want to configure.
randomize
Here we define settings for randomization. If not needed, just remove this entire block code and skip this tutorial π
randomize
-> rows
Here we define the randomization for rows in the matrix. If not needed, just remove this entire block code.
randomize
-> rows
-> filter_schema
This variable allows you to randomize rows in the same order as a previous question by using its schema.
βΉοΈ If you choose to use this feature, you can skip the rest of the configurations within rows' randomization.
randomize
-> rows
-> answer_groups
This variable representes a list of row codes that you want to group together for randomization.
The row codes should be wrapped inside bracket [] and separated by commas.
βΉοΈ Any remaining row codes that are not included in a group will be treat as anchors.
randomize
-> rows
-> randomize_groups
This variable determines whereter or not row groups should be randomized after elements inside them have been randomized.
If set to true, both the elements within the groups and the groups themselves will be randomized.
If set to false, only the elements within the groups will be randomized.
randomize
-> columns
Here we define setting for randomization in columns. If not needed, just remove this entire block codeπ
randomize
-> columns
-> filter_schema
This variable allows you to randomize rows in the same order as a previous question by using its schema.
βΉοΈ If you choose to use this feature, you can skip the rest of the configurations within columns' randomization
randomize
-> columns
-> answer_groups
This variable representes a list of column codes that you want to group together for randomization.
The column codes should be wrapped inside bracket [] and separated by commas.
βΉοΈ Any remaining column codes that are not included in a group will be treat as anchors.
randomize
-> columns
-> randomize_groups
This variable determines whether or not column groups should be randomized after elements inside them have been randomized.
If set to true, both the elements within the groups and the groups themselves will be randomized.
If set to false, only the elements within the groups will be randomized.
Last updated
Was this helpful?