An oTree app for eliciting risk preferences using binary choices over lottery pairs. Follows a plugin-style architecture for rapid experiment deployment.
- Binary lottery pairs: Subjects choose between two lotteries per row
- CSV-driven instruments: Lottery pairs defined in CSV config files
- Grouped rows (
lgid): Positivelgidvalues randomize row order within the group; negative values preserve order. Groups are shown in order of|lgid|. - Configurable overview pages: HTML overview/instruction pages loaded from config directories
- Video instructions: Support for embedded instruction videos
- Config override: Project-level configs in
configs/<app_name>/override local configs
Where <aname> is the name given to the app:
<aname>— Name of the lottery instrument<aname>_overview— Name of the overview HTML page<aname>_gen_config— Name of the general config<aname>_video_url— URL for the instruction video
Add to your oTree project and include in SESSION_CONFIGS:
SESSION_CONFIGS = [
dict(
name='risk',
app_sequence=['intro_task', 'risk_task', 'final_page'],
num_demo_participants=1,
),
]Place lottery CSV files in configs/lottery_sets/ and general config YAML in configs/general/.
Brian Albert Monroe