Noreplace behavior


Author
Message
mzhang13
mzhang13
Associate Member (239 reputation)Associate Member (239 reputation)Associate Member (239 reputation)Associate Member (239 reputation)Associate Member (239 reputation)Associate Member (239 reputation)Associate Member (239 reputation)Associate Member (239 reputation)Associate Member (239 reputation)
Group: Forum Members
Posts: 3, Visits: 34
I'm a bit confused how the behavior of noreplace works. I set up my experiment such that the number of items per type of trial should add up to the number of trials I'm asking the block to fill. In the below example, shopping_trial has 14 unique trials, discount_trial has 6 unique trials, and gender_trial has 8 unique trials. Trials are set up to run paired stimuli (using the index selected of 1 of the stimuli), with the base stimuli being set to noreplace. However, when this runs, it seems to ignore the noreplace, duplicating some of these trials and not reaching the full 14 shopping trials (presumably, there's a 33% chance of each trial occurring regardless of the replacement status).

Here is some abridged code to show how this is set up:

<item discount1>
/1 = "Stimuli/sprite.jpg"
/2 = "Stimuli/tropicana_oj.jpg"

/3 = "Stimuli/philadelphia_cream_cheese.jpg"
/4 = "Stimuli/store_paper_towels.png"

/5 = "Stimuli/chicken_breast2.jpg"
/6 = "Stimuli/strawberries2.jpg"
</item>

<picture discount1>
/ items = discount1
/ select = noreplace
</picture>

<picture discount2>
/ items = discount2
/ select = current(discount1)
</picture>

<trial discount_trial>
/ stimulusframes = [1 = discount1, discount2]
</trial>

--------------------------

<block november>
/ bgstim = (zreminder, mreminder)
/ trials = [1-28 = noreplace(shopping_trial, discount_trial, gender_trial)]
/ errormessage = false
</block>

Is there any way to make it pick exactly 14, 6, and 8, while also forcing it to randomize the order of the presentation of these trials?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search