Millisecond Forums

selecting with counter and repeating prior to moving to next selection

https://forums.millisecond.com/Topic5219.aspx

By Teresa - 12/10/2010

Hi all,


I am currently attempting to present subject and behavior object pairs. There are four subjects and eight behaviors. Each subject should be presented with each of the eight behaviors five different times (for a total of 40 behaviors paired with each subject). I would like to randomly select one of the 4 subjects and then have that subject repeat 40 times with the behaviors randomly selected before the program moved to the next subject.


I've figured out how to pair it so that the 8 behaviors are randomly selected and paired with each subject, but only with sequential subject ordering. I can't figure out how to randomly select the order of the four subjects.


My current code:


<counter subjectselector>
/items = (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4)
/select = sequence
</counter>

<counter behaviorselector>
/items = (1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8)
/select = noreplace
</counter>


Thanks!


Teresa

By Dave - 12/10/2010

Have a <counter> containing your 4 subject items:


<counter mysubjects>
/ items = (1,2,3,4)
/ select = noreplace
/ selectionrate = block
/ resetinterval = 0
</counter>


Run four blocks of trials (one for each subject) in random order, with 40 trials each (8 behaviors x 5). Done.


~Dave