items equal number presentations


Author
Message
IR
IR
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 13, Visits: 146
Hello,

In my study I have to present sequences of pictures and words (i.e., fixation +, then picture, then word). I would like to have pictures and words presented the same number of times. I tried to follow the instructions that I found in other posts with similar questions but it seems that I am making a mistake somewhere because I manage to have the pictures presented correctly but not words.

For example, I would like to have the word “Accident” presented 4 times, once after practice_rec1.jpg, once after practice_rec2.jpg, once after practice_lit1.jpg, and once after practice_lit2.jpg. and the same for the other 3 words.  Below is my trial.
Thank you in advance for your help,
IR

************************
<text spacebar_practice>
/ items = ("

    Place your index fingers on the E and I and press the SPACEBAR for some practice trials.
    If you make a mistake during practice, a red X will appear on the screen.
 ")
/fontstyle = ("Arial", 2.5%)
</text>

<trial spacebar_practice>
/stimulusframes = [1=spacebar_practice]
/ correctresponse = (" ")
</trial>

<text goodreminder>
/ items = ("E = Good")
/ position = (15%, 15%)
/ fontstyle = ("Arial", 5%)
</text>

<text badreminder>
/ items = ("I = Bad")
/ position = (90%, 15%)
/ fontstyle = ("Arial", 5%)
</text>

<text fix>
/ items = ("+")
/ position = (50%,50%)
/ fontstyle = ("Arial", 5%, true)
</text>

<picture emptypic>
/ items = ("emptypic.jpg")
/ position = (50%, 50%)
</picture>

<text error>
/ position = (50%, 88%)
/ items = ("X")
/ color = (255, 0, 0)
/ fontstyle = ("Arial", 10%, true)
</text>

<item practicegood>
/1 = "practice_rec1.jpg"
/2 = "practice_rec2.jpg"
</item>

<item practicebad>
/1 = "practice_lit1.jpg"
/2 = "practice_lit2.jpg"
</item>

<item practicegoodtarget>
/1 = "Friendly"
/3 = "Marvelous"
</item>

<item practicebadtarget>
/1 = "Accident"
/2 = "Humiliate"
</item>

<picture practicegoodprime>
/ items = practicegood
/ select = list.practicegoodlist.nextvalue
/ position = (50%, 50%)
</picture>

<list practicegoodlist>
/items = (1,2,1,2,1,2,1,2)
</list>

<list practicegoodtargetlist>
/items = (1,1,1,1,2,2,2,2)
/selectionmode = list.practicegoodlist.currentindex   
</list>

<picture practicebadprime>
/ items = practicebad
/ select = list.practicebadlist.nextvalue
/ position = (50%, 50%)
</picture>

<list practicebadlist>
/items = (1,2,1,2,1,2,1,2)
</list>

<list practicebadtargetlist>
/items = (1,1,1,1,2,2,2,2)
/selectionmode = list.practicebadlist.currentindex   
</list>


<text practicegoodtarget>
/ items = practicegoodtarget
/ select = list.practicegoodtargetlist.nextvalue
/ fontstyle = ("Arial", 5%)
/ txcolor = (0, 0, 255)
</text>

<text practicebadtarget>
/ items = practicebadtarget
/ select = list.practicebadtargetlist.nextvalue
/ fontstyle = ("Arial", 5%)
/ txcolor = (0, 0, 255)
</text>

<trial practicegoodgood>
/ validresponse = ("e", "i")
/ correctresponse = ("e")
/ stimulustimes = [1=fix,goodreminder,badreminder; 500=emptypic,goodreminder,badreminder;1000=practicegoodprime,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicegoodtarget,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>

<trial practicebadbad>
/ validresponse = ("e", "i")
/ correctresponse = ("i")
/ stimulustimes = [1=fix,goodreminder,badreminder;500=emptypic,goodreminder,badreminder; 1000=practicebadprime,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicebadtarget,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>

<trial practicegoodbad>
/ validresponse = ("e", "i")
/ correctresponse = ("i")
/ stimulustimes = [1=fix,goodreminder,badreminder; 500=emptypic,goodreminder,badreminder; 1000=practicegoodprime,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicebadtarget,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>

<trial practicebadgood>
/ validresponse = ("e", "i")
/ correctresponse = ("e")
/ stimulustimes = [1=fix,goodreminder,badreminder; 500=emptypic,goodreminder,badreminder; 1000=practicebadprime,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicegoodtarget,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>


****PP receive feedback*******************
<block practiceprime>
/ trials = [1=spacebar_practice; 2-17 = noreplace(practicegoodgood, practicebadbad, practicegoodbad, practicebadgood)]
/ errormessage = (error, 200)
</block>
 


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
<picture practicegoodprime>
/ items = practicegood
/ select = list.practicegoodlist.nextvalue
/ position = (50%, 50%)
</picture>

<list practicegoodlist>
/items = (1,2,1,2,1,2,1,2)
</list>

has 8 items (each of the 2 "good" primes 4 times). <picture practicegoodprime> is displayed by *two* <trial> elements


<trial practicegoodgood>
/ validresponse = ("e", "i")
/ correctresponse = ("e")
/ stimulustimes = [1=fix,goodreminder,badreminder; 500=emptypic,goodreminder,badreminder;1000=practicegoodprime,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicegoodtarget,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>

<trial practicegoodbad>
/ validresponse = ("e", "i")
/ correctresponse = ("i")
/ stimulustimes = [1=fix,goodreminder,badreminder; 500=emptypic,goodreminder,badreminder; 1000=practicegoodprime,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicebadtarget,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>

i.e. *both* sample from the 4x2 pool randomly without replacement. *Only* the "good" target

<text practicegoodtarget>
/ items = practicegoodtarget
/ select = list.practicegoodtargetlist.nextvalue
/ fontstyle = ("Arial", 5%)
/ txcolor = (0, 0, 255)
</text>

with

<list practicegoodtargetlist>
/items = (1,1,1,1,2,2,2,2)
/selectionmode = list.practicegoodlist.currentindex  
</list>

depends on the selection made for <picture practicegoodprime>. No relationship exists between <picture practicegoodprime> and <text practicebadtarget>, which is relevant for the 2nd <trial> element -- practicegoodbad -- mentioned above.

<text practicebadtarget>
/ items = practicebadtarget
/ select = list.practicebadtargetlist.nextvalue
/ fontstyle = ("Arial", 5%)
/ txcolor = (0, 0, 255)
</text>

depends on

<picture practicebadprime>
/ items = practicebad
/ select = list.practicebadlist.nextvalue
/ position = (50%, 50%)
</picture>

<list practicebadlist>
/items = (1,2,1,2,1,2,1,2)
</list>

<list practicebadtargetlist>
/items = (1,1,1,1,2,2,2,2)
/selectionmode = list.practicebadlist.currentindex   
</list>

You need to have separate prime and target lists for your 4 prime-target trial types (good-good, good-bad, bad-bad, bad-good) if you want to otherwise keep the script's structure as is.

IR
IR
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 13, Visits: 146
Hello,

I’m still trying to present my items the same number of times and with the correct presentation order (For example, I would like to have the word “Accident” presented 4 times, once after rs_practice_rec1.jpg, once after rs_practice_rec2.jpg, once after rs_practice_lit1.jpg, and once after rs_practice_lit2.jpg. and the same for the other 3 words).

If I understood correctly your suggestion, I had to create separate prime and target lists for the 4 types of trials (good prime – good target; good prime – bad target; bad prime – good target; bad prime – bad target), so now I have 8 different lists each one with 2 items.

Then, I thought that setting the selectionmode to uniform and having a noreplace condition would have allowed me to solve my issue, but it is still not working. Can you please help me figure out where my mistake is?
Thank you in advance for your help,
IR
**********************
<defaults>
/canvasposition = (50%,50%)
/canvassize = (95%,95%)
/windowsize = (90%,90%)
/windowaspectratio = (4,3)
</defaults>

***********************PRIMING****************************************************
**********************************************************************************
<text fix>
/ items = ("+")
/ position = (50%,50%)
/ fontstyle = ("Arial", 5%, true)
</text>

<text error>
/ position = (50%, 88%)
/ items = ("X")
/ color = (255, 0, 0)
/ fontstyle = ("Arial", 10%, true)
</text>

<picture emptypic>
/ items = ("rs_emptypic.jpg")
/ position = (50%, 50%)
/ size = (60%, 60%)
</picture>

<text goodreminder>
/ items = ("E = Good")
/ position = (15%, 15%)
/ fontstyle = ("Arial", 5%)
</text>

<text badreminder>
/ items = ("I = Bad")
/ position = (90%, 15%)
/ fontstyle = ("Arial", 5%)
</text>

***********PRACTICE************************

*******TRIAL GOOD PRIME GOOD TARGET**********

<item practicegood_goodgood>
/1 = "rs_practice_rec1.jpg"
/2 = "rs_practice_rec2.jpg"
</item>

<item practicegoodtarget_goodgood>
/1 = "Friendly"
/2 = "Marvelous"
</item>

<list practiceprimegood_gg>
/items = (1,2)
/itemprobabilities = uniform
/replace = false
</list>

<picture practicegoodprime_goodgood>
/ items = practicegood_goodgood
/ select = list.practiceprimegood_gg.nextvalue
/ position = (50%, 50%)
/ size = (60%,60%)
</picture>

<list practicegoodtarget_gg>
/items = (1,2)
/itemprobabilities = uniform
/replace = false
</list>

<text practicegoodtarget_goodgood>
/ items = practicegoodtarget_goodgood
/ select = list.practicegoodtarget_gg.nextvalue
/ fontstyle = ("Arial", 5%)
/ txcolor = (0, 0, 255)
</text>

<trial practicegoodgood>
/ validresponse = ("e", "i")
/ correctresponse = ("e")
/ stimulustimes = [1=fix,goodreminder,badreminder; 500=emptypic,goodreminder,badreminder;1000=practicegoodprime_goodgood,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicegoodtarget_goodgood,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>

********TRIAL BAD PRIME GOOD TARGET***********

<item practicebad_badgood>
/1 = "rs_practice_lit1.jpg"
/2 = "rs_practice_lit2.jpg"
</item>

<item practicegoodtarget_badgood>
/1 = "Friendly"
/2 = "Marvelous"
</item>

<list practicebadprime_bg>
/items = (1,2)
/itemprobabilities = uniform
/replace = false
</list>

<picture practicebadprime_badgood>
/ items = practicebad_badgood
/ select = list.practicebadprime_bg.nextvalue
/ position = (50%, 50%)
/ size = (60%,60%)
</picture>

<list practicegoodtarget_bg>
/items = (1,2)
/itemprobabilities = uniform
/replace = false
</list>

<text practicegoodtarget_badgood>
/ items = practicegoodtarget_badgood
/ select = list.practicegoodtarget_bg.nextvalue
/ fontstyle = ("Arial", 5%)
/ txcolor = (0, 0, 255)
</text>

<trial practicebadgood>
/ validresponse = ("e", "i")
/ correctresponse = ("e")
/ stimulustimes = [1=fix,goodreminder,badreminder; 500=emptypic,goodreminder,badreminder;1000=practicebadprime_badgood,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicegoodtarget_badgood,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>

********TRIAL GOOD PRIME BAD TARGET***********

<item practicegood_goodbad>
/1 = "rs_practice_rec1.jpg"
/2 = "rs_practice_rec2.jpg"
</item>

<item practicebadtarget_goodbad>
/1 = "Accident"
/2 = "Humiliate"
</item>

<list practiceprimegood_gb>
/items = (1,2)
/itemprobabilities = uniform
/replace = false
</list>

<picture practicegoodprime_goodbad>
/ items = practicegood_goodbad
/ select = list.practiceprimegood_gb.nextvalue
/ position = (50%, 50%)
/ size = (60%,60%)
</picture>

<list practicebadtarget_gb>
/items = (1,2)
/itemprobabilities = uniform
/replace = false
</list>

<text practicebadtarget_goodbad>
/ items = practicebadtarget_goodbad
/ select = list.practicebadtarget_gb.nextvalue
/ fontstyle = ("Arial", 5%)
/ txcolor = (0, 0, 255)
</text>

<trial practicegoodbad>
/ validresponse = ("e", "i")
/ correctresponse = ("e")
/ stimulustimes = [1=fix,goodreminder,badreminder; 500=emptypic,goodreminder,badreminder;1000=practicegoodprime_goodbad,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicebadtarget_goodbad,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>

********TRIAL BAD PRIME BAD TARGET***********

<item practicebad_badbad>
/1 = "rs_practice_lit1.jpg"
/2 = "rs_practice_lit2.jpg"
</item>

<item practicebadtarget_badbad>
/1 = "Accident"
/2 = "Humiliate"
</item>

<list practiceprimebad_bb>
/items = (1,2)
/itemprobabilities = uniform
/replace = false
</list>

<picture practicebadprime_badbad>
/ items = practicebad_badbad
/ select = list.practiceprimebad_bb.nextvalue
/ position = (50%, 50%)
/ size = (60%,60%)
</picture>

<list practicebadtarget_bb>
/items = (1,2)
/itemprobabilities = uniform
/replace = false
</list>

<text practicebadtarget_badbad>
/ items = practicebadtarget_badbad
/ select = list.practicebadtarget_bb.nextvalue
/ fontstyle = ("Arial", 5%)
/ txcolor = (0, 0, 255)
</text>

<trial practicebadbad>
/ validresponse = ("e", "i")
/ correctresponse = ("e")
/ stimulustimes = [1=fix,goodreminder,badreminder; 500=emptypic,goodreminder,badreminder;1000=practicebadprime_badbad,goodreminder,badreminder; 1200=emptypic,goodreminder,badreminder; 1250=practicebadtarget_badbad,goodreminder,badreminder]
/ posttrialpause = random (500,750,1000,1250,1500)
/ response = timeout (2000)
</trial>


<block practiceprime>
/ trials = [1-16 = noreplace(practicegoodgood, practicebadbad, practicegoodbad, practicebadgood)]
/ errormessage = (error, 200)
</block>


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
> I’m still trying to present my items the same number of times and with the correct presentation order (For example, I would like to
> have the word “Accident” presented 4 times, once after rs_practice_rec1.jpg, once after rs_practice_rec2.jpg, once after
> rs_practice_lit1.jpg, and once after rs_practice_lit2.jpg. and the same for the other 3 words).

If you want your stimuli to be paired like that, you need to (1) spell out the pairs and (2) specify the proper dependencies. See the "How to display stimulus pairs" topic in the documentation. Example: Suppose you have letters A to C and digits 1 to 3. You want each letter to be paired with each digit and presented exactly once. Thus:

<block myblock>
/ trials = [1-9=mytrial]
</block>

<trial mytrial>
/ stimulusframes = [1=letter,digit]
/ validresponse = (57)
</trial>

<text letter>
/ items = ("A", "B", "C")
/ select = list.letteritems.nextvalue
/ position = (50%, 45%)
</text>

<text digit>
/ items = ("1", "2", "3")
/ select = list.digititems.nextvalue
/ position = (50%, 55%)
</text>

<list letteritems>
/ items = (1,1,1,2,2,2,3,3,3)
/ selectionmode = random
</list>

<list digititems>
/ items = (1,2,3,1,2,3,1,2,3)
/ selectionmode = list.letteritems.currentindex
</list>

The same applies to your situation. Spell out the pairs you want in each of your trial types in the applicable <list> elements, pair the lists accordingly and sample from them.

IR
IR
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 13, Visits: 146
Thank you!
IR

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search