iscorrectresponse


Author
Message
AnthonyFCollinsSussex
AnthonyFCollinsSussex
Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)
Group: Forum Members
Posts: 52, Visits: 250
Hey there!

Hope all is well. I just need a tad bit of help for the following situation:

Say that you have 40 comprehension questions, some require a YES response ("E") or a NO response ("I") (one or the other, but not both). I have created lists for the respective comprehension question for each type of response (I won't paste all the comprehension question items here, but this is done in script of course):

<list Eresponse>
/ items = (1,2,4,5,7,11,13,16,18,26,29,34,40)
/ selectionmode = text.comprehension.currentindex
</list>

<list Iresponse>
/ items = (3,6,12,15,21,23,28,30,33,39)
/ selectionmode = text.comprehension.currentindex
</list>

Thus, when it comes to the trial, I am telling Inquisit to register what is 'correct'. For example, if they are presented with (question) item 1 from above, then this requires E (yes) to be pressed, as it belongs to the Eresponse list. If they press I, then this is incorrect. This is what I have so far for the trial code:

<trial comprehension>
/ stimulusframes = [1=text.comprehension]
/ validresponse = ("E", "I")
/ iscorrectresponse = (trial.comprehension.response == list.Eresponse.nextvalue....

But this means iscorrectresponse is only dealing with the Eresponses?, I am unsure as to code up to ensure that a correct response depends on which type of comprehension question it belongs to - list E (for yes) or list I (for no). This is where I am stuck. I considered using <values> but could not fathom it.

Dave has already allowed me to make huge progress with this experiment I am running (with a full Inquisit license) and relates to my recent post titled 'branching' (about adapting LDT to incorporate scenarios, comprehension questions etc). Well It has all come together thanks to that single piece of advice thus far, so thank you so much. It is just this part I have run into bother with. I reckon I should be okay after this point.

The script is simple, and it works and runs the task, and so thought I'd attach here just in case (I know your amazing expertise allows you to understand what's going on straight away!)

Thank you kindly
Yours Sincerely
Anthony


Attachments
LDT V2.iqx (226 views, 10.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
AnthonyFCollinsSussex - 3 Years Ago
Dave - 3 Years Ago
AnthonyFCollinsSussex - 3 Years Ago
AnthonyFCollinsSussex - 3 Years Ago
Dave - 3 Years Ago
                     Thank you so much <3
AnthonyFCollinsSussex - 3 Years Ago
AnthonyFCollinsSussex - 3 Years Ago
                         Try setting <list correctkeys> / items = (18, 18, 23, 18, 23,...
Dave - 3 Years Ago
                             It worked! It did indeed do the trick! (I knew it would be a minor...
AnthonyFCollinsSussex - 3 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search