Skip to content

bamonroe/hora_task

Repository files navigation

hora_task

An oTree app for eliciting risk preferences through choices between two lotteries with flexible probability distributions, displayed as histograms.

Features

  • Histogram display: Lottery probability distributions shown as visual histograms
  • YAML-configured lotteries: Define outcomes, probabilities, and display options via YAML config files
  • Flexible probability distributions: Arbitrary discrete distributions over shared outcome spaces
  • Grouped questions: Questions organized into groups with randomized selection
  • Flexible bin labels: Support for main and alternative label sets with toggle buttons
  • Config override: Project-level configs override local app configs
  • Randomized URL: App URL is randomized to prevent task identification

Setup

Add to your oTree project and include in SESSION_CONFIGS:

SESSION_CONFIGS = [
    dict(
        name='hora',
        app_sequence=['hora_task'],
        num_demo_participants=1,
    ),
]

Configure lottery pairs by adding YAML files to configs/task/.

Author

Brian Albert Monroe

About

oTree app for lottery choice with histogram-displayed probability distributions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors