oTree Forum >

How to keep roles fixed for 10 rounds, then reshuffle with set_players() in oTree?

#1 by E_P

I'm running an oTree experiment with 30 rounds where players are paired randomly in each round. They meet a different participant randomly every round (stranger matching). I would like to know if I can use subsession.group_randomly(fixed_id_in_group=True) to keep the roles fixed for 10 rounds, then reshuffle the id_in_group (using set_players()? I'm having trouble finding an example for this).

After the reshuffle, I want them to keep their new roles for another 10 rounds , and then do a final reshuffle, where they may or may not change roles, but those roles should remain fixed for the last 10 rounds.

Is this possible? Any advice or examples would be greatly appreciated!

Write a reply

Set forum username