Millisecond Forums

Collecting a random decision

https://www.millisecond.com/forums/Topic16096.aspx

By DavidS - 4/21/2015

Current I have a script where participants are shown to one of two instructions. They then follow these instructions on a linked website
<block training>
/ trials = [1= random (instructionsA, instructionsB); 2= website]
/ responsemode = correct
</block>
I need to record which instruction was displayed, but can't figure out how. Any advice would be appreciated
By Dave - 4/21/2015

The trialcode column in your data file will tell you which. It'll read 'instructionsA' if <trial instructionsA> was run, 'instructionsB' if <trial instructionsB> was run respectively.
By DavidS - 4/21/2015

Thanks for the reply
Unfortunately the response isn't recorded under trial code. This is intentional as we don't want the response data here to be mixed in with the test IAT. Not sure how to get around this
By Dave - 4/21/2015

The trialcode column isn't supposed to record any response data, it's supposed to record the *name* of the trial element. Not sure why you deliberately chose to not log that or what the risks of mixup with other data is supposed to be.

At any rate, if you want that information to be recorded, you need to do so *somewhere* in your data file(s). If you don't want to use the trialcode column for it, create a <values> entry, store the type of instruction displayed in it, and log that value to the data file(s).

<values>
/ instructionsshown = ""
</values>

<block myblock>
/ trials = [1=noreplace(InstructionsA,InstructionsB); 2=website]
</block>

<trial InstructionsA>
/ ontrialbegin = [values.instructionsshown=script.currenttrial]
/ stimulusframes = [1=atxt]
/ validresponse = (57)
/ recorddata = false
</trial>

<trial InstructionsB>
/ ontrialbegin = [values.instructionsshown=script.currenttrial]
/ stimulusframes = [1=btxt]
/ validresponse = (57)
/ recorddata = false
</trial>

<trial website>
/ stimulusframes = [1=websitetxt]
/ validresponse = (57)
</trial>

<text atxt>
/ items = ("A")
</text>

<text btxt>
/ items = ("B")
</text>

<text websitetxt>
/ items = ("Imagine website here...")
</text>

<data>
/ columns = [date time subject blocknum blockcode trialnum trialcode stimulusnumber stimulusitem response latency values.instructionsshown]
</data>

<summarydata>
/ columns = [script.startdate script.starttime script.elapsedtime script.subjectid script.groupid values.instructionsshown]
</summarydata>

By DavidS - 4/21/2015

Thanks, that works perfectly!