Description of the problem: Yesterday I tried to run a study using shelf to counterbalance ~600 participants recruited via prolific. they were to be assigned to one of 12 groups.
I used to counterbalance routine linked to a shelf record.
In the first instance I recruited 12 participants. both shelf and the data files showed one participant in each group.
I opened up the study for the remaining participants and something clearly didnt work:
From looking at your experiment’s code, it looks like Slots per group is set to 1, but the target on Pavlovia is 50, so I suspect this weird behaviour may be to do with the mismatch there. Try setting it to 50 in PsychoPy too and then running yourself a dozen times to see if the proportions line up.
Also, in the data files for the later participants, what values do you get in the columns law_groups.remaining and law_groups.group? Do they line up with what Pavlovia is reporting? Another possibility is that participants were assigned the correct groups but Pavlovia is reporting their assignments wrong.
the law_groups.group seem to be report numbers inline with the shelf record. all of the files ive checked seem to be reporting this in a sensible way and I have some code that reads that column and partially sets the filename based on group allocation. the file names appear to be as imbalanced as the shelf record.
law_groups.remaining however is blank. I dont know what to read into this. I did set up psychopy to produce a blank data output with empty columns (including law_groups.remaining). all the other columns seem to have been overwritten properly. this column remains blank, seemingly uniformly.
I had a similar issue with the new counterbalance function for the shelf in March (allocation to four groups resulted in almost all participants being put on only two of them) so at the moment I’m still using my VESPR Study Portal. I’m not yet sure at what point the new counterbalance goes wrong.
Same for me. It seemed to work at the beginning of data collection, however. Only during the last weeks, participants have been assigned to no other group but the first and last one. Have any changes been made to the counterbalance function 3-5 weeks ago?
I had a closer look at the time stamps of the datasets - counterbalancing in our experiment has started to be “biased” around May 22/23. That´s when the last participants were assigned to any other bins than the first and the last.
Hope this helps!
May I ask if there has been any progress on this issue? I understand that this problem might not be easy to solve! We just really need to continue data collection, so it would be great to know if a solution within the next days is likely or if I need to find a workaround for our experiment?
Thanks again!
I believe that @apitiot is looking into it this week, but I don’t know if he’ll be successful. Personally I would recommend creating your own counterbalance code using the shelf or switching to the VESPR Study Portal.
Here’s some code I used for one of my experiments where I wanted to counterbalance separately for men and non-men:
I have found the cause of the problem and have a first solution (that is being improved).
The issue has to do with the weighted approach I am using to assign groups to participants not dealing well with the combination of (a) a large number of participants starting all at once (i.e. reserving many slots) with (b) slot values being much smaller than the number of participants (i.e. 1 in your case, with 50 repeats, instead of say 10 repeats of 5).
This is rather tricky to work out. I am on it.
I would suggest you hold off a few more days before starting again. I will have a better approach, together with settings that you can tweak and adapt to your experiment, by early next week.
Cheers,