[open] 4 group randomization
Hi there,
I am quite new at opensesame and I did all tutorials I could find but I guess the most obvious and simple still makes me confused:
I want to do an easy (social-psychology) experiment with 4 groups. Each group has a different sequence of 4 product-picture stimulus material with some questions after each picture.
Usually I would determine the different product pictures, claim to the picture and source of the claim as different variables. It is a 4x2x2 design. But we really just need 4 different sequences or 4 groups and not a complete randomization. Thus I thought it's easier to build up 4 different sequences and show each participant in a randomized order one of these sequences. I will have to put the overlapping variables together afterwards but that is a minor concern.
My question is now: How can I randomize different sequences, since I can't define the different sequences as variables in a loop.
Is there any possibility? Or is there a better way for randomzing my groups?
cheers,
Johannes

Comments
Hi Johannes,
There may be more elegant way of solving your problem, but I've done something similar as follows.
First, you'll need to generate your four sequences, and place them within the experiment structure so that they would run one after the other. You'll probably want to place them after the instructions, if the same instructions apply to each sequence.
Next, you can place an inline_script section at the start of your experiment, containing something like this:
Beside each of your sequences, there's a 'Run if' option, which is set to 'always' by default. Change this to `[sequence_number] == 1' for the first sequence (and 2, 3, and 4 for the others).
What all this will do is essentially:
- Generate a random number between 1 and 4.
- Run sequences 1, 2, 3, or 4, depending on the number generated.
Hope this helps!
Eoin
Oh, another possibility is, instead of completely randomizing which sequence is presented, you counterbalance it according to the subject number.
hi,
cool thank you very much! For your first option I would not need any loop right?
your second option is very nice, to make sure I have equal sample sizes in every group. But if you just divide the subject number by 4 and ad 1 ist that getting bigger and bigger, since the subject number increases with every participant?
1000 thanks!
Johannes
ok, never mind, I figured it out (about the subject number divided by 4 +1
solved....