﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Displaying correct responses and response latency after task</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 20 Sep 2026 01:19:10 GMT</lastBuildDate><ttl>20</ttl><item><title>Displaying correct responses and response latency after task</title><link>https://forums.millisecond.com/Topic19800.aspx</link><description>Hi Dave (or whoever knows the answer to my question)&lt;br/&gt;&lt;br/&gt;I would like to display the number of correct/incorrect answers as well as the average response latency of my Go/NoGo task to participants at the end of the task (output variables "correct" and "latency"). Is it possible to do so?&lt;br/&gt;&lt;br/&gt;Thanks in advance for your answer,&lt;br/&gt;&lt;br/&gt;Cheers</description><pubDate>Wed, 05 Oct 2016 23:50:04 GMT</pubDate><dc:creator>thestruggleisreal</dc:creator></item><item><title>RE: Displaying correct responses and response latency after task</title><link>https://forums.millisecond.com/Topic19810.aspx</link><description>Thanks a bunch, Dave. I'll give it a try :-)&amp;nbsp;</description><pubDate>Wed, 05 Oct 2016 23:50:04 GMT</pubDate><dc:creator>thestruggleisreal</dc:creator></item><item><title>RE: Displaying correct responses and response latency after task</title><link>https://forums.millisecond.com/Topic19803.aspx</link><description>Yes. For a go/nogo paradigm, you'll want to set up a bunch of &amp;lt;values&amp;gt; and &amp;lt;expressions&amp;gt; to track the metrics of interest (number of responses, number of correct responses, mean latency for trials where a response occurred). You can then report those statistics back to the participant via a &amp;lt;page&amp;gt; or &amp;lt;trial&amp;gt; element. Basic example:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ sumlatency = 0&lt;br/&gt;/ nresponses = 0&lt;br/&gt;/ ncorrect = 0&lt;br/&gt;/ ntrials = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ meanlat = (values.sumlatency/values.nresponses)&lt;br/&gt;/ pctcorrect = (values.ncorrect/values.ntrials)*100&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ postinstructions = (performance)&lt;br/&gt;/ blocks = [1=myblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-12 = noreplace(go, nogo, nogo)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial go&amp;gt;&lt;br/&gt;/ ontrialend = [if (trial.go.response != 0) {values.sumlatency += trial.go.latency; values.nresponses += 1;};]&lt;br/&gt;/ ontrialend = [values.ncorrect += trial.go.correct]&lt;br/&gt;/ ontrialend = [values.ntrials += 1]&lt;br/&gt;/ stimulusframes = [1=gotxt]&lt;br/&gt;/ validresponse = (57, 0)&lt;br/&gt;/ correctresponse = (57)&lt;br/&gt;/ timeout = 2000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial nogo&amp;gt;&lt;br/&gt;/ ontrialend = [if (trial.nogo.response != 0) {values.sumlatency += trial.go.latency; values.nresponses += 1;};]&lt;br/&gt;/ ontrialend = [values.ncorrect += trial.nogo.correct]&lt;br/&gt;/ ontrialend = [values.ntrials += 1]&lt;br/&gt;/ stimulusframes = [1=nogotxt]&lt;br/&gt;/ validresponse = (57, 0)&lt;br/&gt;/ correctresponse = (0)&lt;br/&gt;/ timeout = 2000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text gotxt&amp;gt;&lt;br/&gt;/ items = ("RESPOND!")&lt;br/&gt;/ txcolor = green&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text nogotxt&amp;gt;&lt;br/&gt;/ items = ("Do NOT respond.")&lt;br/&gt;/ txcolor = red&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page performance&amp;gt;&lt;br/&gt;^Your mean RT was &amp;lt;%expressions.meanlat%&amp;gt; ms.&lt;br/&gt;^You responded correctly in &amp;lt;%expressions.pctcorrect%&amp;gt; % of all trials.&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 05 Oct 2016 09:47:12 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>