random trial selection


Author
Message
plush
plush
Guru (5.3K reputation)Guru (5.3K reputation)Guru (5.3K reputation)Guru (5.3K reputation)Guru (5.3K reputation)Guru (5.3K reputation)Guru (5.3K reputation)Guru (5.3K reputation)Guru (5.3K reputation)
Group: Forum Members
Posts: 57, Visits: 96
Hi guys, I wish to randomly start a trial. I was thinking of branching:

<trial agencyneg>
/branch = [trial.agencynegA]
/branch = [trial.agencynegL]
</trial>

<trial agencypos>
/branch = [trial.agencyposA]
/branch = [trial.agencyposL]
</trial>

<block main>
/ trials = [1-10 = noreplace
(agencypos, agencyneg);
11-12 = noreplace (eva_pos, eva_neg)]
</block>

However this always starts the first trial of the branch procedure.

Any advice is appreciated.

Thx!
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: 12K, Visits: 98K
plush - Tuesday, January 17, 2017
Hi guys, I wish to randomly start a trial. I was thinking of branching:

<trial agencyneg>
/branch = [trial.agencynegA]
/branch = [trial.agencynegL]
</trial>

<trial agencypos>
/branch = [trial.agencyposA]
/branch = [trial.agencyposL]
</trial>

<block main>
/ trials = [1-10 = noreplace
(agencypos, agencyneg);
11-12 = noreplace (eva_pos, eva_neg)]
</block>

However this always starts the first trial of the branch procedure.

Any advice is appreciated.

Thx!

/branch attributes are checked in the order they are given. The first /branch that applies is executed. Since both of your /branches are unconditional, that will necessarily always be the first one.

The solution is to use <list> elements. I.e.

<trial agencyneg>
/ branch = [
    list.agencynegtrials.nextvalue
]

/ trialduration = 0
</trial>

<trial agencypos>
/ branch = [
    list.agencypostrials.nextvalue
]

/ trialduration = 0
</trial>

<list agencynegtrials>
/ items = (trial.agencynegA, trial.agencynegL)
</list>


<list agencypostrials>
/ items = (trial.agencyposA, trial.agencyposL)
</list>


<block main>
/ trials = [1-10 = noreplace(agencypos, agencyneg);
    11-12 = noreplace(eva_pos, eva_neg)]
</block>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search