PennController for IBEX › Forums › Support › assigning group at the global level
Tagged: groups, randomization
- This topic has 2 replies, 2 voices, and was last updated 4 years ago by
bgardner.
-
AuthorPosts
-
April 15, 2021 at 11:22 pm #6862
bgardner
ParticipantHi! I’m new to web languages, so I have something that should be possible but I’m probably approaching it wrong. I’m trying to transfer over from Qualtrics, and I have an experiment with several blocks:
1. read 500-word passages and answer a few questions
2. read sentences introducing characters
3. answer multiple choice questions about each character
4. do a sentence completion task about each characterI’ve been able to implement #2-4 easily using the groups function in Templates, because all those stimuli fit easily in one csv. And it seems to be assigning people to the same group for each Template.
What I’m trying to do is have one group variable that I can use to select the items for #1 out of a set of html files, and then the items for #2-4 out of a csv file, and then update the count of how may participants per group. There are 4 conditions for #1 and 3 lists for #2-4, so I have to have 12 lists instead of randomizing each set separately.
I could maybe get everything into 1 csv, but putting a 250 word text in one cell would be very unwieldly. Is there a straightforward way to do this?
Thanks!
April 16, 2021 at 9:48 am #6867Jeremy
KeymasterHi,
You can have all your HTML files in your project, but only reference the filenames of the ones you want to show for each group in a CSV file.
By default, PennController relies on Ibex’s internal counter which gets incremented whenever a participant finishes the experiment. The
Template
command will use that counter to select the rows corresponding to a specific group, in a cycling way. If you have one table with 4 groups (say A-D) and another one with 3 groups (say A-C), then the groups will match for the counter’s values0
,1
and2
, but when the counter reaches the value3
then it will move on to group D for the first table and go back to group A for the second table, and so on.Here is a project that illustrates these two points: https://farm.pcibex.net/r/ZzqAbG/
Jeremy
April 20, 2021 at 10:58 pm #6879bgardner
ParticipantThank you! Putting the HTML file names in the stimuli list, and realizing that it keeps track of the group throughout the whole script worked.
-
AuthorPosts
- You must be logged in to reply to this topic.