from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = 'Pre-experiment quiz to confirm the understanding of the experiment' class Constants(BaseConstants): name_in_url = 'Quiz' players_per_group = None num_rounds = 10 salary = 90 cost_high = 40 cost_low = 10 bonus = 50 penalty = 50 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): correct = models.IntegerField(initial=0) Q1 = models.IntegerField(choices=[[-2, '0%'], [-1, '20%'], [1, '80%'], [0, '100%']], label='If you are a more active manager, then what is the likelihood that your division will have high earnings?', widget=widgets.RadioSelect) Q2 = models.IntegerField(choices=[[0, 'True'], [1, 'False']], label='Both you and corporate headquarters always learn whether your division’s actual earnings are high or low.', widget=widgets.RadioSelect) Q3 = models.IntegerField(choices=[[1, 'True'], [0, 'False']], label='You can choose to report to corporate headquarters that your division’s earnings are high even if your division’s actual earnings are low.', widget=widgets.RadioSelect) Q4 = models.IntegerField(choices=[[0, 'True'], [1, 'False']], label='If you report low earnings, then there is a 50% chance that your report will be selected for an internal audit.', widget=widgets.RadioSelect) Q5 = models.IntegerField(choices=[[-2, '0 Lira'], [1, '50 Lira'], [0, '80 Lira'], [-1, '100 Lira']], label='Assume that a more active division manager learned that his/her division’s actual earnings were low, and then reported low earnings to corporate headquarters. What is the manager’s payoff?', widget=widgets.RadioSelect) Q6 = models.IntegerField(choices=[[-2, '30 Lira'], [-1, '80 Lira'], [0, '100 Lira'], [1, '130 Lira']], label='Assume that a less active division manager learns that his/her division’s actual earnings are low, and reports high earnings to corporate headquarters. The manager’s report is not selected for an internal audit. What is the manager’s payoff?', widget=widgets.RadioSelect) Q1_correct = models.IntegerField(initial=0) Q5_correct = models.IntegerField(initial=0) Q6_correct = models.IntegerField(initial=0) Passed = models.IntegerField(initial=0)