from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'my_survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): your_id = models.StringField(label='Please write your ID if you are student of Behavioral and Experimental Economics (Fall 2021) course. Otherwise, write any random number more than 1000.') age = models.IntegerField(label='What is your age?') gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female']], label='What is your gender?', widget=widgets.RadioSelectHorizontal) risk = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='How usually do you take risks? (5 - always, 1 - never)', widget=widgets.RadioSelectHorizontal) cheat = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='How usually do you cheat at university? (5 - always, 1 - never)', widget=widgets.RadioSelectHorizontal) gpa = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10']], label='What is your rounded GPA?', widget=widgets.RadioSelect) income = models.StringField(choices=[['<10 000 rubles', '<10 000 rubles'], ['10 000 - 20 000 rubles', '10 000 - 20 000 rubles'], ['20 000 - 40 000 rubles', '20 000 - 40 000 rubles'], ['40 000 - 70 000 rubles', '40 000 - 70 000 rubles'], ['70 000 - 100 000 rubles', '70 000 - 100 000 rubles'], ['>100 000 rubles', '>100 000 rubles']], label='What is your monthly income?', widget=widgets.RadioSelect) cheat_opinion = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='Do you agree that cheating behavior is wrong? (5 - absolutely agree, 1 - absolutely disagree)', widget=widgets.RadioSelectHorizontal) h1 = models.StringField(choices=[['90% chance of $2', '90% chance of $2'], ['10% chance of $6', '10% chance of $6']], label='', widget=widgets.RadioSelectHorizontal) h2 = models.StringField(choices=[['20% chance of $2', '20% chance of $2'], ['80% chance of $6', '80% chance of $6']], label='', widget=widgets.RadioSelectHorizontal) h3 = models.StringField(choices=[['30% chance of $2', '30% chance of $2'], ['70% chance of $6', '70% chance of $6']], label='', widget=widgets.RadioSelectHorizontal) h4 = models.StringField(choices=[['40% chance of $2', '40% chance of $2'], ['60% chance of $6', '60% chance of $6']], label='', widget=widgets.RadioSelectHorizontal) h5 = models.StringField(choices=[['50% chance of $2', '50% chance of $2'], ['50% chance of $6', '50% chance of $6']], label='', widget=widgets.RadioSelectHorizontal) h6 = models.StringField(choices=[['60% chance of $2', '60% chance of $2'], ['40% chance of $6', '40% chance of $6']], label='', widget=widgets.RadioSelectHorizontal) h7 = models.StringField(choices=[['70% chance of $2', '70% chance of $2'], ['30% chance of $6', '30% chance of $6']], label='', widget=widgets.RadioSelectHorizontal) h8 = models.StringField(choices=[['80% chance of $2', '80% chance of $2'], ['20% chance of $6', '20% chance of $6']], label='', widget=widgets.RadioSelectHorizontal) h9 = models.StringField(choices=[['90% chance of $2', '90% chance of $2'], ['10% chance of $6', '10% chance of $6']], label='', widget=widgets.RadioSelectHorizontal) g1 = models.StringField(choices=[['10% chance of $6', '10% chance of $6'], ['90% chance of $12', '90% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) g2 = models.StringField(choices=[['20% chance of $6', '20% chance of $6'], ['80% chance of $12', '80% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) g3 = models.StringField(choices=[['30% chance of $6', '30% chance of $6'], ['70% chance of $12', '70% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) g4 = models.StringField(choices=[['40% chance of $6', '40% chance of $6'], ['60% chance of $12', '60% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) g5 = models.StringField(choices=[['50% chance of $6', '50% chance of $6'], ['50% chance of $12', '50% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) g6 = models.StringField(choices=[['60% chance of $6', '60% chance of $6'], ['40% chance of $12', '40% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) g7 = models.StringField(choices=[['70% chance of $6', '70% chance of $6'], ['30% chance of $12', '30% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) g8 = models.StringField(choices=[['80% chance of $6', '80% chance of $6'], ['20% chance of $12', '20% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) g9 = models.StringField(choices=[['90% chance of $6', '90% chance of $6'], ['10% chance of $12', '10% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) l1 = models.StringField(choices=[['10% chance of $2', '10% chance of $2'], ['90% chance of $12', '90% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) l2 = models.StringField(choices=[['20% chance of $2', '20% chance of $2'], ['80% chance of $12', '80% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) l3 = models.StringField(choices=[['30% chance of $2', '30% chance of $2'], ['70% chance of $12', '70% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) l4 = models.StringField(choices=[['40% chance of $2', '40% chance of $2'], ['60% chance of $12', '60% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) l5 = models.StringField(choices=[['50% chance of $2', '50% chance of $2'], ['50% chance of $12', '50% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) l6 = models.StringField(choices=[['60% chance of $2', '60% chance of $2'], ['40% chance of $12', '40% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) l7 = models.StringField(choices=[['70% chance of $2', '70% chance of $2'], ['30% chance of $12', '30% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) l8 = models.StringField(choices=[['80% chance of $2', '80% chance of $2'], ['20% chance of $12', '20% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) l9 = models.StringField(choices=[['90% chance of $2', '90% chance of $2'], ['10% chance of $12', '10% chance of $12']], label='', widget=widgets.RadioSelectHorizontal) class Survey_ID(Page): form_model = 'player' form_fields = ['your_id'] class Survey(Page): form_model = 'player' form_fields = ['age', 'gender', 'income', 'gpa', 'risk', 'cheat', 'cheat_opinion'] class Instruction(Page): form_model = 'player' class Hault_risk_1(Page): form_model = 'player' form_fields = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'h7', 'h8', 'h9'] class Hault_risk_2(Page): form_model = 'player' form_fields = ['g1', 'g2', 'g3', 'g4', 'g5', 'g6', 'g7', 'g8', 'g9'] class Hault_risk_3(Page): form_model = 'player' form_fields = ['l1', 'l2', 'l3', 'l4', 'l5', 'l6', 'l7', 'l8', 'l9'] page_sequence = [Survey_ID, Survey, Instruction, Hault_risk_1, Hault_risk_2, Hault_risk_3]