Collecting a random decision


Author
Message
DavidS
DavidS
Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)
Group: Forum Members
Posts: 10, Visits: 67
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

Dave
Dave
Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)
Group: Administrators
Posts: 10K, Visits: 51K
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.

DavidS
DavidS
Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)
Group: Forum Members
Posts: 10, Visits: 67
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

Dave
Dave
Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)Supreme Being (785K reputation)
Group: Administrators
Posts: 10K, Visits: 51K
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>


DavidS
DavidS
Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)
Group: Forum Members
Posts: 10, Visits: 67
Thanks, that works perfectly!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search