Post by dajoch on May 11, 2023 13:42:55 GMT
Hello everybody,
I try to replicate the Implicit Association Test "Race" from Project Implicit (https://implicit.harvard.edu/implicit/Study?tid=-1) in Psytoolkit.
Coding the basic idea worked out well, but now I have a problem:
Our Code consists of 25 bitmaps of faces of black women, 25 of white women, 8 bitmaps of "good" words and 8 of "bad" words. In a test trial I want to show the testperson every category 5 times and in an evaluation trial 25 times each.
With "all_before_repeat" every bitmap is shown, before repeated, but because of the unbalanced number of bitmaps I do not have balanced trials.
How can I code the tasks for a randomized, balanced number of bitmaps of each category?
I would love to use different tables in one task, but maybe there is another option to seperate the bitmaps in the tables?
Thank you very much in advance
Kind regards
David
I try to replicate the Implicit Association Test "Race" from Project Implicit (https://implicit.harvard.edu/implicit/Study?tid=-1) in Psytoolkit.
Coding the basic idea worked out well, but now I have a problem:
Our Code consists of 25 bitmaps of faces of black women, 25 of white women, 8 bitmaps of "good" words and 8 of "bad" words. In a test trial I want to show the testperson every category 5 times and in an evaluation trial 25 times each.
With "all_before_repeat" every bitmap is shown, before repeated, but because of the unbalanced number of bitmaps I do not have balanced trials.
How can I code the tasks for a randomized, balanced number of bitmaps of each category?
bitmaps
w1 w1.jpg #pics of white women
#(...)
w25 w25.jpg
s1 s1.jpg # pics of black women
# (...)
s25 s25.jpg
instructions
smiley
frowny
ready
#8 "good" words
Gluecklich
Frieden
Vergnuegen
Prachtvoll
Liebe
Lachen
Freude
Wundervoll
#8 "bad" words
Qual
Verletzt
Misserfolg
Boese
Uebel
Schrecklich
Grausam
Scheußlich
fonts
arial 18
# in the following tables, there is the stimulus word and two possible
# responses (depending on which target category is presented left or right)
table weiss_schwarz_list
w1 1 2
w2 1 2
w3 1 2
w4 1 2
w5 1 2
w6 1 2
w7 1 2
w8 1 2
w9 1 2
w10 1 2
w11 1 2
w12 1 2
w13 1 2
w14 1 2
w15 1 2
w16 1 2
w17 1 2
w18 1 2
w19 1 2
w20 1 2
w21 1 2
w22 1 2
w23 1 2
w24 1 2
w25 1 2
s1 2 1
s2 2 1
s3 2 1
s4 2 1
s5 2 1
s6 2 1
s7 2 1
s8 2 1
s9 2 1
s10 2 1
s11 2 1
s12 2 1
s13 2 1
s14 2 1
s15 2 1
s16 2 1
s17 2 1
s18 2 1
s19 2 1
s20 2 1
s21 2 1
s22 2 1
s23 2 1
s24 2 1
s25 2 1
table weiss_schwarz_gut_schlecht_list
w1 1 2
w2 1 2
w3 1 2
w4 1 2
w5 1 2
w6 1 2
w7 1 2
w8 1 2
w9 1 2
w10 1 2
w11 1 2
w12 1 2
w13 1 2
w14 1 2
w15 1 2
w16 1 2
w17 1 2
w18 1 2
w19 1 2
w20 1 2
w21 1 2
w22 1 2
w23 1 2
w24 1 2
w25 1 2
s1 2 1
s2 2 1
s3 2 1
s4 2 1
s5 2 1
s6 2 1
s7 2 1
s8 2 1
s9 2 1
s10 2 1
s11 2 1
s12 2 1
s13 2 1
s14 2 1
s15 2 1
s16 2 1
s17 2 1
s18 2 1
s19 2 1
s20 2 1
s21 2 1
s22 2 1
s23 2 1
s24 2 1
s25 2 1
Gluecklich 1 1
Frieden 1 1
Vergnuegen 1 1
Prachtvoll 1 1
Liebe 1 1
Lachen 1 1
Freude 1 1
Wundervoll 1 1
Qual 2 2
Verletzt 2 2
Misserfolg 2 2
Boese 2 2
Uebel 2 2
Schrecklich 2 2
Grausam 2 2
Scheußlich 2 2
task weiss_schwarz
keys e i
table weiss_schwarz_list
draw off
if &order == 1
show text "weiss" -250 -50
show text "schwarz" 250 -50
fi
if &order == 2
show text "schwarz" -250 -50
show text "weiss" 250 -50
fi
draw on
delay 100
show rectangle 0 0 10 10 255 255 255 # fixpoint
delay 100
clear -1
delay 100
show bitmap @1
if &order == 1
readkey @2 3000
fi
if &order == 2
readkey @3 3000
fi
clear -1
if STATUS != CORRECT
show bitmap frowny
delay 50
clear -1
delay 50
show bitmap frowny
delay 50
clear -1
delay 50
show bitmap frowny
delay 50
clear -1
delay 100
fi
if STATUS == CORRECT
show bitmap smiley
delay 200
clear -1
delay 100
fi
delay 150
save BLOCKNAME BLOCKNUMBER @1 RT STATUS
task mixed
keys e i
table weiss_schwarz_gut_schlecht_list
draw off
if &order == 1
show text "weiss" -250 -50
show text "schwarz" 250 -50
fi
if &order == 2
show text "schwarz" -250 -50
show text "weiss" 250 -50
fi
show text "gut" -250 50
show text "schlecht" 250 50
draw on
delay 100
show rectangle 0 0 10 10 255 255 255 # fixpoint
delay 200
clear -1
delay 200
show bitmap @1
if &order == 1
readkey @2 3000
fi
if &order == 2
readkey @3 3000
fi
clear -1
if STATUS != CORRECT
show bitmap frowny
delay 50
clear -1
delay 50
show bitmap frowny
delay 50
clear -1
delay 50
show bitmap frowny
delay 50
clear -1
delay 100
fi
if STATUS == CORRECT
show bitmap smiley
delay 200
clear -1
delay 100
fi
delay 150
save BLOCKNAME BLOCKNUMBER @1 RT STATUS
block instructions
message instructions
block weiss_schwarz
set &order 1 ## order 1 means: weiss=left,schwarz=right
tasklist
weiss_schwarz 20 all_before_repeat
end
feedback
set &meanrt mean c4 ; select c5 == 1 && c2 == 1
text 0 0 &meanrt ; prefix "Your average response speed is " ; postfix " milliseconds"
text 0 100 "press space to continue"
end
block mix_compatible
message ready
set &order 1 ## order 1 means: weiss=left,schwarz=right
tasklist
mixed 20 all_before_repeat
end
feedback
set &meanrt_com mean c4 ; select c5 == 1 && c2 == 3
text 0 0 &meanrt ; prefix "Your average response speed (compatible) is " ; postfix " milliseconds"
text 0 100 "press space to continue"
end
block mix_compatible2
message ready
set &order 1 ## order 1 means: weiss=left,schwarz=right
tasklist
mixed 100 all_before_repeat
end
feedback
set &meanrt_com mean c4 ; select c5 == 1 && c2 == 3
text 0 0 &meanrt ; prefix "Your average response speed (compatible) is " ; postfix " milliseconds"
text 0 100 "press space to continue"
end
block schwarz_weiss
message ready
set &order 2 ## order 2 means: weiss=right,schwarz=left
tasklist
weiss_schwarz 28 all_before_repeat
end
feedback
set &meanrt mean c4 ; select c5 == 1 && c2 == 4
text 0 0 &meanrt ; prefix "Your average response speed is " ; postfix " milliseconds"
text 0 100 "press space to continue"
end
block mix_incompatible
message ready
set &order 2 ## order 2 means: weiss=right,schwarz=left
tasklist
mixed 20 all_before_repeat
end
feedback
set &meanrt_inc mean c4 ; select c5 == 1 && c2 == 5
set &iat_effect expression &meanrt_inc - &meanrt_com
text 0 -100 &meanrt ; prefix "Your average response speed is in last block (incompatible) is " ; postfix " ms"
text 0 0 &iat_effect ; prefix "Your IAT compatibility effect = INC - COM = "; postfix " ms"
text 0 100 "press space to continue"
end
block mix_incompatible2
message ready
set &order 2 ## order 2 means: weiss=right,schwarz=left
tasklist
mixed 100 all_before_repeat
end
feedback
set &meanrt_inc mean c4 ; select c5 == 1 && c2 == 5
set &iat_effect expression &meanrt_inc - &meanrt_com
text 0 -100 &meanrt ; prefix "Your average response speed is in last block (incompatible) is " ; postfix " ms"
text 0 0 &iat_effect ; prefix "Your IAT compatibility effect = INC - COM = "; postfix " ms"
text 0 100 "press space to continue"
end
blockorder
instructions
weiss_schwarz
mix_compatible
mix_compatible2
schwarz_weiss
mix_incompatible
mix_incompatible2
blockorder
instructions
schwarz_weiss
mix_incompatible
mix_incompatible2
weiss_schwarz
mix_compatible
mix_compatible2
I would love to use different tables in one task, but maybe there is another option to seperate the bitmaps in the tables?
Thank you very much in advance
Kind regards
David