chapkovski / randomizing-apps-otree

randomizing subsets of pages in oTree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shuffling several apps

This code is updated for working with the recent (>3.0.8).

to make it work, do 2 things:

  1. Add StartApp at the beginning of app_sequence of the session config where you want to randomize apps (all following apps will be randomized, with an exception of StartApp)

  2. in each pages.py instead of

from ._builtin import  Page

insert

from StartApp.pages import Page

You can keep the old import statement and insert a new one after that:

from ._builtin import Page, WaitPage
from StartApp.pages import Page

Citation:

if use, please cite:

Chapkovski, Philipp, Randomizing apps in oTree (February 15, 2021). Available at SSRN: https://ssrn.com/abstract=3786021

That's it, enjoy!

About

randomizing subsets of pages in oTree


Languages

Language:Python 92.1%Language:HTML 4.6%Language:CSS 3.2%