Generating random sequences with constraints


Author
Message
SanneBos
SanneBos
Associate Member (112 reputation)Associate Member (112 reputation)Associate Member (112 reputation)Associate Member (112 reputation)Associate Member (112 reputation)Associate Member (112 reputation)Associate Member (112 reputation)Associate Member (112 reputation)Associate Member (112 reputation)
Group: Forum Members
Posts: 7, Visits: 19
For an online experiment I created a modified Stroop task. I put my script in the attachment 
For this experiment I have three categories per block with items (word lists), and each word should appear once in red and once in blue. The order of the trials should be random per word category and per word color. 

Now I want to put some constraints on the randomized order, as my script currently randomly picks a blue or red item from one of the three lists in that block.

The order must be random, with the following constraints?:
- The items should appear in a random order
- No more than 3 trials with the same color in a row.
- Each item (word) should appear exactly once in red, once in blue (currently controlled with two separate lists and assigning a color to that itemset.)
- Within a block, a word should never appear in red and blue immediately after one another. There should be at least 2-3 trials in between two similar words.

How can I implement this in Inquisit?
Thanks in advance!


Attachments
ADHD_StroopTask_final.iqx (212 views, 124.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
SanneBos - 4 Years Ago
Dave - 4 Years Ago
SanneBos - 4 Years Ago
Dave - 4 Years Ago
SanneBos - 4 Years Ago
SanneBos - 4 Years Ago
SanneBos - 4 Years Ago
Dave - 4 Years Ago
                     When I run my script, I get the error: The element...
SanneBos - 4 Years Ago
                         To /branch to a block object contained in a list, you ought to do...
Dave - 4 Years Ago
                             Thanks! Everything works now!
SanneBos - 4 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search