-
Hi, I need some advice on constructing a randomization algorithm for a sequence of blocks in my experiment. I have two types of blocks - hard and easy, and I want to generate a random sequence of 26 of the blocks, but to keep the final proportion of blocks 50/50 or at least close to it, e.g 45/ 55. I currently used the sampleWithReplacement approach |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
One approach would be to create one array with all 26 blocks (13 of each), and then use |
Beta Was this translation helpful? Give feedback.
-
Check out the randomization.repeat method: https://www.jspsych.org/core_library/jspsych-randomization/#jspsychrandomizationrepeat |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! I tried the randomization repeat method, since it takes less effort and it did the job :) |
Beta Was this translation helpful? Give feedback.
Check out the randomization.repeat method: https://www.jspsych.org/core_library/jspsych-randomization/#jspsychrandomizationrepeat