Counterbalancing stimulus positions
Hello,
I'm trying to present two pictures simultaneously, counterbalancing their positions across participants.
In the trial, the two pictures are presented simultaneously after a fixation. One is presented in left side, the other is in right side.
Each picture should be presented just once, so half of participants will see the picture1 in left side, the other half will do in right side. Further, half of pictures are target stimuli and the other half are distracter stimuli, and they should be always paired. So participants see the target in either left or right side.
I was able to make just the trial sequence and present stimuli by stimuli.canvas function.
Now I think about using balanced_latin_squarefunction or Expyriment's example code of simon task.
Are there any better ways or suggestions?
Thanks
Comments
Hello,
I made a script without using
balanced_latin_squarefunction as below.In the script, the positions are just randomized but not counterbalanced.
In this case, the two images presented in each trial are always same while the exported data shows the images in left and right sides changed correctly every trial.
Is there any way to counterbalancing the positions across participants, and what is the cause that the same stimuli are presented?
Thanks
Can you provide a working example?
Hi,
I found the cause of same stimuli.
It was caused by
canvas.present(). It runs as below by changingcanvas.present()totrial.stimuli[0].present().I'm still looking for the clear way of counterbalancing the positions across participants.
Are there any suggestions?
Thanks!
How about creating a between-subject factor "picture_arrangement" with two levels ("x_is_left", "x_is_right"):
And then later in the experiment (after calling
expyriment.control.start(), i.e. after a subject ID has been entered):