Reply To: Randomizing trials, with 1/5 of trials followed by a comprehension question

PennController for IBEX Forums Support Randomizing trials, with 1/5 of trials followed by a comprehension question Reply To: Randomizing trials, with 1/5 of trials followed by a comprehension question

#9577
jackying
Participant

Hi Jeremy, the codes you suggested work! Thanks!

Here’s two follow-up questions, and they’re still about the same experiment asking participants to choose a word between two options for the blank in each conversation. Here’s link to the experiment with revised codes. https://farm.pcibex.net/r/hQtoVE/

1. How can I have the 60 test items/conversations randomly drawn from a master list (.csv file) with 90 blanked conversations?
PS: I did found a relevant post https://www.pcibex.net/forums/topic/choosing-subet-of-items-to-present/, but my case seems to be more complicated.

These 90 conversations are labeled by the answer to the blank in each conversation and fall into 6 categories (the number of items for each category is put in parentheses and they add up to 90), let’s say, A (20), B (20), C (15), D (15), E (10), and F (10). First, I randomly take out 5 items from each category (i.e., a total of 30 items taken out or eliminated), so I have the remaining 60 items to start with as the actual set of test items.

2. For the items/conversations in each category after elimination (suggested above), how do I assign one option pair to some conversations in that category and another option pair to the other conversations in the same category?

Following the idea you suggested with using Boolean entries and given my case/needs, I’m considering to assign 5 “false”s to items in each category and the rest of the items will be “true”. The idea is basically that I want to give conversations different option pairs depending on 1) the category of (i.e., answer to) the conversation and 2) the “true”/”false” value assigned. So what makes this new version different from the old version (the demonstration link attached above) is that, while I already have separate columns (i.e., D1 and D2 in the .csv file) for option pairs in the old version, in the new version, there will not be predetermined option columns for each conversation — instead, the codes will decide what option pairs to be assigned to each conversation depending on the category and the “true”/”false” value assigned in each case.

For instance, for items in categories A and B, if they are assigned “true”, the option pair for the blank will be A and B. For items assigned “false” in A, the option pair will be A and C, and for those “false” items in B, the option pair will be B and D. Is there a way for me to achieve this? I think I just need example codes for cases with “true” and “false” in category A, and I should be able to extend that to other categories with relevant modifications. Moreover, is it possible for me to log the option pairs assigned to each conversation (for the exact thing to be logged, maybe something more general like “true” or “false”, or it could be something more detailed like “A/B” for “true” items in category A)?

Some more trivial questions include:
a) Because I need to assign different option pairs to the six categories (A to F), do I need more than one template to make that happen? (Maybe not if the assignment of option pair should be done separately before the use of template or templates.)
b) Does the assignment of option pairs affect the code I should be using for the line Sequence("intro", "practice", randomize("trial"),"send", "end")?

I hope what I want to achieve is clearly stated above, but feel free to let me know if there’s places I didn’t explain well!
Thank you so much for your time!