#1 by sakib
How do you define roles when you have, for example, 1 'leader' and 3 'followers'? If I want to keep the roles fixed for the entire session for each participant but match 1 leader to 3 followers every round randomly, how would I do it? I have tried setting up roles in the constant but it only assigns roles to the first two participants. Thanks, Sakib
#2
by
JonasF
(edited )
Hi, I dont think oTree's role functionality is well suited for experiments where more than 1 player has the same role. I suggest you do the following: - make a StringField in the player model claeed something like custom role - In the creating session function assign 1/4 of the players the custom role leader and 3/4 the custom role follower. The code you can use for this is similar to the balanced treatment assignment code form here: https://otree.readthedocs.io/en/latest/treatments.html#balanced-treatment-groups - Use a group by arrival time method to make the groups following the example here: https://otree.readthedocs.io/en/latest/multiplayer/waitpages.html#group-by-arrival-time-method
#3 by sakib
Hi Jonas, Thanks a lot!! This a great suggestion. I will give this a go. Best, Sakib