I want to assign participants to one of two possible conditions randomly. So far I am able to assign participants to a condition manually by using ‘group’ in the info dialog. That is, the conditions for each trial are defined by:
$expInfo['group']+".xlsx", which works fine. However, it requires me to manually define the group for each participant. I want to run the experiment online, and therefore have participants be automatically, and randomly (not fullRandom) assigned to one of the groups.
I also tried using an outer loop for the entire experiment, which worked for randomizing ‘A’ and ‘B’, but forced it to run both ‘A’ and ‘B’. It seems it might be possible to short-circuit a loop, but it feels like there should be an easier solution to this problem.
There are two versions of my experiment that use the exact same trials, but different stimuli. I want to assign participants randomly to each version online.
- Using the Info Dialog to determine group - but this had to be done manually
- Using a block loop for the entire experiment - but this forced participants to run both versions
I hope this is sufficiently clear. Please let me know if any additional info is necessary. I plan on using Pavlovia to run the experiment in the end, but I have not tried it yet.
Thanks in advance.