oTree Forum >

Creating pairs in oTree

#1 by Anonymousguy

Hello everyone,

how do i create pairs in an experiment? For example, i have 30 players in total. I always want two groups to play against each other, each group consists of 3 players.
So with this logic, I will have 5 pairs in total.

Group 1 (3 Players) vs. Group 2 (3 Players)

Group 3 (3 Players) vs. Grouß 4 (3 Players) 

and so on..

#2 by ChristianK

Hi,

You are dealing with two levels of groups, basically. One "super-group" that you call a pair and a regular group (of 3 players). I see two ways to implement this setting:

1) You could use otree's Group model to model the super groups of 6 players, than create your own sub-groups by internally treating players 1, 2, 3 of each group as group A and 4, 5, 6 as group B in each pair.

2) You could flip it around and use trees Group model for the 3-player groups. Then you have to create your own super-group handling by always matching group id 1 with 2, 3 with 4, etc.

Which way to go depends on a number of factors including if and how you re-shuffle players between groups, if and how you re-match the groups, etc.

Best
Christian

Write a reply

Set forum username