presenting randomized stimuli without repeating


Author
Message
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
The code you posted is not directly related to item selection; it's about *trial* selection. It means

for a total of 44 trials (2-45), sample without replacement from the 6 listed elements (dtmatched1stcorrect, ldtmatched2ndcorrect, ...) in *equal proportions* without replacement.

Since 44 is not divisible by 6, that doesn't make a whole lot of sense (44/6=7.33), since there cannot be any such thing as 0.33 of a trial. You'll almost certainly want to adjust either the number of trials, their relative proportions or both. See the documentation for the <block> element's /trials attribute for details on how trial selection works. You can also find examples in this forum, e.g.

https://www.millisecond.com/forums/FindPost16338.aspx

https://www.millisecond.com/forums/FindPost3693.aspx

Hope this helps.

porky1985
porky1985
Associate Member (108 reputation)Associate Member (108 reputation)Associate Member (108 reputation)Associate Member (108 reputation)Associate Member (108 reputation)Associate Member (108 reputation)Associate Member (108 reputation)Associate Member (108 reputation)Associate Member (108 reputation)
Group: Forum Members
Posts: 1, Visits: 12
Hi

I am new to Inquisit and I do not have a programming background. That's why I downloaded a script from the sample library and tweaked it a little bit. However< I ran into a problem that when I tried to randomize the stimuli with 'noreplace', some of my stimuli somehow repeat themselves.

2-45=noreplace(ldtmatched1stcorrect, ldtmatched2ndcorrect, ldtmatched3rdcorrect, ldtunmatched1stcorrect, ldtunmatched2ndcorrect, ldtunmatched3rdcorrect)

Under Idtmatched1stcorrect etc., I have a list of items.

I'd appreciate if anyone could offer some help.

Thanks a million and I apologize in advance if my questions are not clear enough.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search