Millisecond Forums

target pairs in IAT?

https://forums.millisecond.com/Topic19435.aspx

By ememem - 7/27/2016

Hello, 
I have no prior experience to coding or creating scripts so I'm struggling a lot with coding my experimental program in Inquisit 4. I am making a test similar to an IAT with categories (statements) and picture targets. However, instead of having the different statements on the left and right for participants to select, I want them be displayed along with a picture target in the centre of the screen, and for participants to select from two categories of true or false displayed on the bottom of the screen. 

For example, when picture A appears with statement A, the participant should be expected to select true, while when picture B appears with statement A, they should select false. The rest of the study is essentially an IAT where both compatible (A + A pairs, B+ B pairs) and incompatible blocks (A + B, B +A) will be keyed as correct. 

My script at the moment is a standard picture IAT script. I have keyed the pictures to the categories for true or false, but I would like the pictures to appear with statements, and to key them according to these pairs. 

How can I do this in inquisit?  I would be very grateful for any help. 


By Dave - 7/27/2016

If I understand your short description correctly, you should set up four <trial> elements

<defaults>
/ inputdevice = mouse
</defaults>

*** compatible trials ***
<trial aa>
/ stimulusframes = [1=a_pic, a_statement, true, false]
/ validresponse = (true, false)
/ correctresponse = (true)
</trial>

<trial bb>
/ stimulusframes = [1=b_pic, b_statement, true, false]
/ validresponse = (true, false)
/ correctresponse = (true)
</trial>

*** incompatible trials ***
<trial ab>
/ stimulusframes = [1=a_pic, b_statement, true, false]
/ validresponse = (true, false)
/ correctresponse = (false)
</trial>

<trial ba>
/ stimulusframes = [1=b_pic, a_statement, true, false]
/ validresponse = (true, false)
/ correctresponse = (false)
</trial>

that display either congruent pictures and statements (aa, bb) or an incongruent combination (ab, ba). Run those trials as needed in your blocks. For the response options, you need to set up a couple of <text> elements (<text true>, <text false>), and have your trials display them on screen via /stimulusframes. For all stimuli, use their /position attributes to place them where you need them to be on the screen. /inputdevice ought to be set to mouse.
By ememem - 7/30/2016

Thank you very much, Dave!