Thank you for the response.
Yes, I do need the randomization.I have 32 critical items and 64 control items, and every participant in the experiment should get a different order.
I read the following post, but I do not know how to use it for mine.: Randomisation with constraints - #9 by JensBoelte
The way I understood this is
- import the stim xlsx.
- randomize the order of the stims.
- put the logic to say “i and i +1 or i and i - 1” should not have the same label in Type such as Critical, otherwise randomize the order of the stim.
- when it satisfies the logic in 3, it starts the experiment.
Here is the dataframe again:
Data frame in excel file is like this:
Item Type Stimulus
1 Critical sentence1 …
2 Critical sentence2…
3 Critical sentence3 …
4 Control sentence4 …
5 Control sentence5 …
6 Control sentence6 …
7 Control sentence7 …
8 Control sentence8 …
…
so on
…
96 Control Sentence96
But I do not know how to code them, can you help with this? step by step?