Random list selection


Author
Message
vicki.rivera
vicki.rivera
Associate Member (118 reputation)Associate Member (118 reputation)Associate Member (118 reputation)Associate Member (118 reputation)Associate Member (118 reputation)Associate Member (118 reputation)Associate Member (118 reputation)Associate Member (118 reputation)Associate Member (118 reputation)
Group: Forum Members
Posts: 10, Visits: 31
Is there a way to have the script not select the same item from the list for baseline_persons and baseline_objects? For example, if baseline_persons is "CURTAIN", I don't want baseline_objects to also be "CURTAIN".

<item baseline_prime>
/ 1 = "CURTAIN"
/ 2 = "TABLE"
/ 3 = "UTENSIL"
/ 4 = "VOWEL"
/ 5 = "COLUMN"
/ 6 = "PAPER"
/ 7 = "PENCIL"
/ 8 = "METAL"
</item>

<text baseline_persons>
/ items = baseline_prime
/ select = noreplace
/ selectionrate = experiment
/ position = (50%, 50%)
</text>

<text baseline_objects>
/ items = baseline_prime
/ select = noreplace
/ selectionrate = experiment
/ position = (50%, 50%)
</text>
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
vicki.rivera - 10/25/2024
Is there a way to have the script not select the same item from the list for baseline_persons and baseline_objects? For example, if baseline_persons is "CURTAIN", I don't want baseline_objects to also be "CURTAIN".

<item baseline_prime>
/ 1 = "CURTAIN"
/ 2 = "TABLE"
/ 3 = "UTENSIL"
/ 4 = "VOWEL"
/ 5 = "COLUMN"
/ 6 = "PAPER"
/ 7 = "PENCIL"
/ 8 = "METAL"
</item>

<text baseline_persons>
/ items = baseline_prime
/ select = noreplace
/ selectionrate = experiment
/ position = (50%, 50%)
</text>

<text baseline_objects>
/ items = baseline_prime
/ select = noreplace
/ selectionrate = experiment
/ position = (50%, 50%)
</text>

<item baseline_prime>
/ 1 = "CURTAIN"
/ 2 = "TABLE"
/ 3 = "UTENSIL"
/ 4 = "VOWEL"
/ 5 = "COLUMN"
/ 6 = "PAPER"
/ 7 = "PENCIL"
/ 8 = "METAL"
</item>

<list itemnumbers>
/ poolsize = 8
/ selectionrate = always
</list>

<values>
/ person = 0
/ object = 0
</values>

<text baseline_persons>
/ items = baseline_prime
/ select = values.person
/ position = (50%, 50%)
</text>

<text baseline_objects>
/ items = baseline_prime
/ select = values.object
/ position = (50%, 50%)
</text>

<trial o>
/ stimulusframes = [1=text.baseline_objects]
/ validresponse = (57)
</trial>

<trial p>
/ stimulusframes = [1=text.baseline_persons]
/ validresponse = (57)
</trial>

<block exampleBlock>
/ trials = [1-10 = noreplace(o, p)]
</block>

<expt exampleExpt>
/ onexptbegin = [
    values.object = list.itemnumbers.nextindex;
    values.person = list.itemnumbers.nextindex;
]
/ blocks = [1=block.exampleBlock]
</expt>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search