Hi, I’ll be running an online psychopy experiment. I usually achieve between-subjects counterbalancing (of assigning stimuli to conditions, etc.) by loading a new excel conditions sheet for each participant. Presumably I can’t do this when I am running it online? Am I now forced to created different “versions” of my experiment for the different counterbalancing conditions? There must be a way around this, but I can’t seem to figure it out…
Hi Nicholas. In my case, I need to use a different conditions file for each participant (randomising the identity of the stimuli). Am I correct in assuming, that if I used your solution it may result in some condition files being selected more than once and others not being selected at all? Thanks!
Hi, and thank you! Am I correct in understand that this requires me to ask the participant to enter an ID and/or link with Qualtrics? Is there a way to avoid both of those options?
Sorry for the silly question, but how do I label my condition files so that the ID generated matches a file? A related but somewhat similar question - have you seen the thread in Todd’s profile titled ‘personalising stimuli’? Out of curiosity, is that also a way to achieve the same end (randomise the identity of stimuli per participant, but in this case using one conditions file), and does it work online (the thread refers to builder). Thanks!
Thank you for the specific instruction! I’ll probably end up using 40 condition files. I will use your suggestion. The reason for my second question was just to understand different ways of doing things.
So far I understand how to structure my URL but I don’t know how to specify things in PsychoPy.
Is useFile = “condition”+str(expInfo[‘participant’]%8)+".xlsx" in Begin Experiment enough to make it work? does it achieve the same thing as condition = int(expInfo['participant'])%x as indicated on your web app?
Do I have to include code in PsychoPy to register the participant ID or does your web app do that automatically?
I’d need to know more about your PsychoPy experiment to answer this but yes, those two codes are doing equivalent things: one is selecting a conditions file called condition0.xlsx to condition7.xlsx (which would also need to be added in Experiment Settings / Online / Additional Resources. The other is setting condition as a number from 0 to x-1.
participant and session are read by default by PsychoPy experiments, unless you edit/delete these variables in Experiment Settings
Thank you ! Regarding my experiment, I think it is very similar to what previous posters have described here : I have an experiment that counterbalances the stimuli between subjects across 18 distinct sets (so, 18 distinct Excel files).
I’ll try this all out and let you know. I may have one last question though. If, for instance, I’ve had 18 participants click on my URL and they have gone through the cycle of the 18 conditions, what will happen when a 19th participant clicks? Does it automatically go back to condition 1 ?
If you use %18 then participant 0 and participant 18 will see then same Excel file.
If you would prefer random balanced allocation rather than cycling through systematically, then you should use my VESPR Study Portal. Licenced users (£10) can have a variable called group which is randomly allocated but counterbalanced and adjusts for non-finishers.