﻿<?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 4  » Emotional Stroop Task, Pseudorandom</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 22 Sep 2026 22:18:09 GMT</lastBuildDate><ttl>20</ttl><item><title>Emotional Stroop Task, Pseudorandom</title><link>https://forums.millisecond.com/Topic17166.aspx</link><description>Hi, everybody.&lt;br/&gt; I´m new to Inquisit and only have done a very simple AMP Task till now. Which is basically a modified IAT. Also I only have a little experience in programming. Now I´m being pushed into the cold water. I have to create an Emotional Stroop Task (different from the one in the library).&lt;br/&gt;&lt;br/&gt;Basically happy and fearful faces with the words Happy and Fearful written on them. Either congruent or incongruent. So I named the stimuli MxHH (Male, counting variable, Happy Face, Happy Word) So far so good. &lt;br/&gt; The Problem is I can´t present the Stimuli just at random. There are certain criteria.&lt;br/&gt;&lt;br/&gt;1. I need an equal number of stimuli combinations of congruent - congruent, congruent - incongruent, incongruent - congruent and incongruent - incongruent.&lt;br/&gt;Example:&lt;br/&gt;Trial 1 -&amp;gt; Incongruent -&amp;gt; (With no preceding trial there is no combination)&lt;br/&gt;Trial 2 -&amp;gt; Congruent -&amp;gt; I-C Combination&amp;nbsp;&lt;br/&gt;Trial 3 -&amp;gt; Congruent -&amp;gt; C-C Combination&amp;nbsp;&lt;br/&gt;&lt;br/&gt;2. Additionally I need some way to set an id for each combination in the data output for later Spss voodoo.&lt;br/&gt;&lt;br/&gt;3. After for example M1HH appeared as Stimulus. M1 in any Face/Word Combination can´t appear in the following trial. I can´t have the same face twice. &lt;br/&gt;&lt;br/&gt;4. After a MxHH combination, no HH combination can follow. It must be a FH, FF, HF. So I can´t have the same Face/Word Combination twice. &lt;br/&gt; I don´t even have an idea what to do about the pseudorandomization in problem 1. &lt;br/&gt; I have an idea what to do about problem 2-4 but don´t know how to do it. Problem 2 could be solved by comparing the current trial with the preceding one and setting an id. Problem 3 and 4 could be solved comparing the current trial with his preceding one and exclude certain stimuli before the stimuli appears. &lt;br/&gt; &lt;br/&gt; I´m so far out of my depth I don´t even know where to look for answers in the Inquisit Documentation. Can you tell me which commands i should check?&lt;br/&gt; Is there maybe an experiment in the library which has done something similar which you can point me at? Looked through some but didn´t find or recognized what I needed.&lt;br/&gt; &lt;br/&gt;And sorry for the wall of text. ;)&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 24 Sep 2015 00:03:28 GMT</pubDate><dc:creator>Stahlwal</dc:creator></item><item><title>RE: Emotional Stroop Task, Pseudorandom</title><link>https://forums.millisecond.com/Topic17211.aspx</link><description>Sorry for the delayed answer.&lt;br/&gt;&lt;br/&gt;Thanks Dave, for the detailed answer. You helped me out alot!&lt;br/&gt;&lt;br/&gt;The pregnerated lists would solve all of those problems. And if i generate enough of them and noreplace them I got my pseudorandom with all its constraints.&lt;br/&gt;At least for the pilot study and until I know Inquisit better this is plenty.&lt;br/&gt;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&amp;nbsp;</description><pubDate>Thu, 24 Sep 2015 00:03:28 GMT</pubDate><dc:creator>Stahlwal</dc:creator></item><item><title>RE: Emotional Stroop Task, Pseudorandom</title><link>https://forums.millisecond.com/Topic17167.aspx</link><description>Regarding the pseudorandomization (#1): You need to come up with an algorithm that produces trial sequences adhering to your constraints. This can be difficult, and it may be impossible to do on-the-fly. See &lt;a href="https://www.millisecond.com/forums/Topic6419.aspx"&gt;https://www.millisecond.com/forums/Topic6419.aspx&lt;/a&gt; for some general thoughts on the topic. One possibility is to pre-generate several conforming sequences (either automatically, semi-automatically or manually), hard-code them into your script and simply have the script select one at random. Take a look at the AAT scripts in the library ( &lt;a href="https://www.millisecond.com/download/library/AAT/"&gt;https://www.millisecond.com/download/library/AAT/&lt;/a&gt; ), specifically at the trial sequence generation code starting at line 1366 in the mouse-version.&lt;br/&gt;&lt;br/&gt;Setting an id is easy. You store the id in a &amp;lt;values&amp;gt; entry and log the value to the data file:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ id = ""&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;trial congruent&amp;gt;&lt;br/&gt;/ ontrialend = [values.id = "c"; ]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [date time subject ... values.id ...]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;Blocking certain stimuli for selection in a row can be achieved in multiple ways. If you use a common &amp;lt;list&amp;gt; for selection in the respective stimulus elements, you can use the /maxrunsize attribute to prevent the same item from being selected in a row.&lt;br/&gt;&lt;br/&gt;&amp;lt;list malelist&amp;gt;&lt;br/&gt;/ items = (1,1,2,2,3,3,...)&lt;br/&gt;...&lt;br/&gt;/ maxrunsize = 1&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;If you have multiple lists / stimulus pools, you can use the respective elements' /not attributes to exclude /block items from selection.&lt;br/&gt;&lt;br/&gt;Question #4 can either be tackled just like #3 above. However, it seems to me there's also a relation to #1, the overall pseudorandomization issue. It might be best to treat this as an additional constraint and dealt with it during trial-sequence generation.&lt;br/&gt;&lt;br/&gt;Hope this gives you a starting point.&lt;br/&gt;</description><pubDate>Mon, 21 Sep 2015 05:32:45 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>