Have results of a randomization used across blocks, or create embedded text of 30 values shuffled. | XM Community

Have results of a randomization used across blocks, or create embedded text of 30 values shuffled.

  • 4 May 2020
  • 1 reply
  • 4 views

I've searched and cannot find an answer. The short question I think is how to create a variable with the values 1-30 and assign these to items.
I will give a brief synopsis of the design if there are better ideas.
The study has 30 quiz items. In one condition 10 items are shown, but for each item the respondent can choose to replace it with two new items that viewed right then (these replacement items have slightly different alternatives, but this shouldn't create a problem). No item can appear twice. I can see this working either by the results of the randomization becoming embedded text, and then using that in the display logic of future blocks, or (I think more simply) creating embedded data that is the values 1 to 30, and then just using the display logic to say what to display. I also want also want to record how long respondents send on each item and if I remember Qualtrics correctly this means each item has its own block (I think this is because of the randomization). So, here is what it might conceptually look like.
create var 1-30, a vector of the 30 integers shuffled. I guess this could be 30 individual variables, but with those shuffled values. Assign these as attributes for each item (so the 16th item may get number 4). So if Shuffle30 is the variable, Shuffle30[16] might have the value 4.
show item with the attribute 1. If they choose to see two replacement items show those with attributes 2 and 3.
show item with the attribute 4. If they choose to see two replacement items show those with attributes 5 and 6.
repeat until
show item with the attribute 28. If they choose to see two replacement items show those with attributes 29 and 30.

Sorry if I missed the answer to this on the web page or in my searches. Dan


1 reply

ps. The alternative is (I think) creating ten sets for the 30 blocks for the original items, and 20 sets of the 30 replacement items (so 900 blocks in total). And then in each set show only 1 block and have had created an embedded data variable at the end of each block that says if that item (in either original or replacement form) has been shown, and then using display logic for this. I assume there is a simpler way than this. Help, Dan

Leave a Reply