Avoid repetition of words
Hello,
Here is my problem, i'd like to assess subjects with a Stroop test where some words appear with different colors. I have different possible combinations of words and colors and I ask the program to randomly choose a color for a given word.
Through the different possible combinations i would like to avoid the repetition of a same word within an experiment (for example "umbrella" should not appear twice: once in blue and once in red).
My researches brang me to the use of the command "maxrep" which i specify at the end of my script with :
constrain Nombre maxrep=1
But it doesn't work. Same words are sometimes still repeating within an experiment, with different colors. You can find here a part of my script (in reality i have more than 90 items).
I used the variable "Nombre" to identify a given item, which exists associated with different colors.
Thanks a lot for you help,
Florence
set source_file ""
set source table
set repeat 0.21
set order random
set item Trial_sequence
set description "Exécuter un autre item plusieurs fois"
set cycles 96
set continuous no
set column_order "Nombre;Color;Word;Buttom;Congruence"
set break_if_on_first yes
set break_if never
setcycle 0 Nombre 1
setcycle 0 Color Blue
setcycle 0 Word Tuer
setcycle 0 Buttom l
setcycle 0 Congruence E
setcycle 1 Nombre 1
setcycle 1 Color Green
setcycle 1 Word Tuer
setcycle 1 Buttom m
setcycle 1 Congruence E
setcycle 2 Nombre 1
setcycle 2 Color Red
setcycle 2 Word Tuer
setcycle 2 Buttom k
setcycle 2 Congruence E
setcycle 3 Nombre 2
setcycle 3 Color Blue
setcycle 3 Word Cadavre
setcycle 3 Buttom l
setcycle 3 Congruence E
setcycle 4 Nombre 2
setcycle 4 Color Green
setcycle 4 Word Cadavre
setcycle 4 Buttom m
setcycle 4 Congruence E
constrain Nombre maxrep=1
shuffle Nombre
run Trial_sequence
Comments
Hi Florence,
I would approach this issue differently. What if you simply add two columns, one
Word
column that contains each word once, and oneColor
column that contains each color in the proportion that they should occur in the experiment.And you then shuffle the Word column by itself, so that the pairing between Word and Color is randomized. Does that make sense? That should do the trick, right?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Dear Sebastiaan,
Thank you! It's much easier now.
Florence