Skip to content

bamonroe/risk_task

Repository files navigation

risk_task

An oTree app for eliciting risk preferences using binary choices over lottery pairs. Follows a plugin-style architecture for rapid experiment deployment.

Features

  • Binary lottery pairs: Subjects choose between two lotteries per row
  • CSV-driven instruments: Lottery pairs defined in CSV config files
  • Grouped rows (lgid): Positive lgid values 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

Configuration

Required intro config fields

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

Setup

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/.

Author

Brian Albert Monroe

About

oTree app for risk preference elicitation via binary lottery pairs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors