from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'Survey_intro' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): sex = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female'], ['Prefer not to say', 'Prefer not to say']], label='What is your sex?') race = models.StringField(blank=True, choices=[['White', 'White'], ['Hispanic or Latino', 'Hispanic or Latino'], ['Black', 'Black'], ['Asian', 'Asian'], ['Pacific Islander', 'Pacific Islander'], ['Native American', 'Native American'], ['Other', 'Other'], ['Multiple races or ethnicities', 'Multiple races or ethnicities'], ['Prefer not to say', 'Prefer not to say']], label='What is your race (or ethnicity)?') married = models.StringField(choices=[['Never Married', 'Never Married'], ['Married', 'Married'], ['Divorced', 'Divorced'], ['Widowed', 'Widowed'], ['Prefer not to say', 'Prefer not to say']], label='What is your marital status?') education = models.StringField(choices=[['Less than a high school degree', 'Less than a high school degree'], ['High school degree (or equivalent)', 'High school degree (or equivalent)'], ["Some college or associate's degree", "Some college or associate's degree"], ["Bachelor's degree", "Bachelor's degree"], ['Graduate or professional degree', 'Graduate or professional degree'], ['Prefer not to say', 'Prefer not to say']], label='What is your highest level of education attained?') employment = models.StringField(choices=[['Employed - full time', 'Employed - full time'], ['Employed - part time', 'Employed - part time'], ['Unemployed - seeking employment', 'Unemployed - seeking employment'], ['Not seeking employment', 'Not seeking employment'], ['Prefer not to say', 'Prefer not to say']], label='What is your current employment status?') consent = models.StringField(choices=[['agree', 'agree']], label='I agree to these terms.', widget=widgets.RadioSelect) location = models.StringField(choices=[['United States ', 'United States '], ['Afghanistan', 'Afghanistan'], ['Albania', 'Albania'], ['Algeria', 'Algeria'], ['Andorra', 'Andorra'], ['Angola', 'Angola'], ['Antigua and Barbuda', 'Antigua and Barbuda'], ['Argentina', 'Argentina'], ['Armenia', 'Armenia'], ['Australia', 'Australia'], ['Austria', 'Austria'], ['Azerbaijan', 'Azerbaijan'], ['The Bahamas', 'The Bahamas'], ['Bahrain', 'Bahrain'], ['Bangladesh', 'Bangladesh'], ['Barbados', 'Barbados'], ['Belarus', 'Belarus'], ['Belgium', 'Belgium'], ['Belize', 'Belize'], ['Benin', 'Benin'], ['Bhutan', 'Bhutan'], ['Bolivia', 'Bolivia'], ['Bosnia and Herzegovina', 'Bosnia and Herzegovina'], ['Botswana', 'Botswana'], ['Brazil', 'Brazil'], ['Brunei', 'Brunei'], ['Bulgaria', 'Bulgaria'], ['Burkina Faso', 'Burkina Faso'], ['Burundi', 'Burundi'], ['Cambodia', 'Cambodia'], ['Cameroon', 'Cameroon'], ['Canada', 'Canada'], ['Cape Verde', 'Cape Verde'], ['Central African Republic', 'Central African Republic'], ['Chad', 'Chad'], ['Chile', 'Chile'], ['China', 'China'], ['Colombia', 'Colombia'], ['Comoros', 'Comoros'], ['Congo, Republic of the', 'Congo, Republic of the'], ['Congo, Democratic Republic of the', 'Congo, Democratic Republic of the'], ['Costa Rica', 'Costa Rica'], ["Cote d'Ivoire", "Cote d'Ivoire"], ['Croatia', 'Croatia'], ['Cuba', 'Cuba'], ['Cyprus', 'Cyprus'], ['Czech Republic', 'Czech Republic'], ['Denmark', 'Denmark'], ['Djibouti', 'Djibouti'], ['Dominica', 'Dominica'], ['Dominican Republic', 'Dominican Republic'], ['East Timor (Timor-Leste)', 'East Timor (Timor-Leste)'], ['Ecuador', 'Ecuador'], ['Egypt', 'Egypt'], ['El Salvador', 'El Salvador'], ['Equatorial Guinea', 'Equatorial Guinea'], ['Eritrea', 'Eritrea'], ['Estonia', 'Estonia'], ['Ethiopia', 'Ethiopia'], ['Fiji', 'Fiji'], ['Finland', 'Finland'], ['France', 'France'], ['Gabon', 'Gabon'], ['The Gambia', 'The Gambia'], ['Georgia', 'Georgia'], ['Germany', 'Germany'], ['Ghana', 'Ghana'], ['Greece', 'Greece'], ['Grenada', 'Grenada'], ['Guatemala', 'Guatemala'], ['Guinea', 'Guinea'], ['Guinea-Bissau', 'Guinea-Bissau'], ['Guyana', 'Guyana'], ['Haiti', 'Haiti'], ['Honduras', 'Honduras'], ['Hungary', 'Hungary'], ['Iceland', 'Iceland'], ['India', 'India'], ['Indonesia', 'Indonesia'], ['Iran', 'Iran'], ['Iraq', 'Iraq'], ['Ireland', 'Ireland'], ['Israel', 'Israel'], ['Italy', 'Italy'], ['Jamaica', 'Jamaica'], ['Japan', 'Japan'], ['Jordan', 'Jordan'], ['Kazakhstan', 'Kazakhstan'], ['Kenya', 'Kenya'], ['Kiribati', 'Kiribati'], ['Korea, North', 'Korea, North'], ['Korea, South', 'Korea, South'], ['Kosovo', 'Kosovo'], ['Kuwait', 'Kuwait'], ['Kyrgyzstan', 'Kyrgyzstan'], ['Laos', 'Laos'], ['Latvia', 'Latvia'], ['Lebanon', 'Lebanon'], ['Lesotho', 'Lesotho'], ['Liberia', 'Liberia'], ['Libya', 'Libya'], ['Liechtenstein', 'Liechtenstein'], ['Lithuania', 'Lithuania'], ['Luxembourg', 'Luxembourg'], ['Macedonia', 'Macedonia'], ['Madagascar', 'Madagascar'], ['Malawi', 'Malawi'], ['Malaysia', 'Malaysia'], ['Maldives', 'Maldives'], ['Mali', 'Mali'], ['Malta', 'Malta'], ['Marshall Islands', 'Marshall Islands'], ['Mauritania', 'Mauritania'], ['Mauritius', 'Mauritius'], ['Mexico', 'Mexico'], ['Micronesia, Federated States of', 'Micronesia, Federated States of'], ['Moldova', 'Moldova'], ['Monaco', 'Monaco'], ['Mongolia', 'Mongolia'], ['Montenegro', 'Montenegro'], ['Morocco', 'Morocco'], ['Mozambique', 'Mozambique'], ['Myanmar (Burma)', 'Myanmar (Burma)'], ['Namibia', 'Namibia'], ['Nauru', 'Nauru'], ['Nepal', 'Nepal'], ['Netherlands', 'Netherlands'], ['New Zealand', 'New Zealand'], ['Nicaragua', 'Nicaragua'], ['Niger', 'Niger'], ['Nigeria', 'Nigeria'], ['Norway', 'Norway'], ['Oman', 'Oman'], ['Pakistan', 'Pakistan'], ['Palau', 'Palau'], ['Panama', 'Panama'], ['Papua New Guinea', 'Papua New Guinea'], ['Paraguay', 'Paraguay'], ['Peru', 'Peru'], ['Philippines', 'Philippines'], ['Poland', 'Poland'], ['Portugal', 'Portugal'], ['Qatar', 'Qatar'], ['Romania', 'Romania'], ['Russia', 'Russia'], ['Rwanda', 'Rwanda'], ['Saint Kitts and Nevis', 'Saint Kitts and Nevis'], ['Saint Lucia', 'Saint Lucia'], ['Saint Vincent and the Grenadines', 'Saint Vincent and the Grenadines'], ['Samoa', 'Samoa'], ['San Marino', 'San Marino'], ['Sao Tome and Principe', 'Sao Tome and Principe'], ['Saudi Arabia', 'Saudi Arabia'], ['Senegal', 'Senegal'], ['Serbia', 'Serbia'], ['Seychelles', 'Seychelles'], ['Sierra Leone', 'Sierra Leone'], ['Singapore', 'Singapore'], ['Slovakia', 'Slovakia'], ['Slovenia', 'Slovenia'], ['Solomon Islands', 'Solomon Islands'], ['Somalia', 'Somalia'], ['South Africa', 'South Africa'], ['South Sudan', 'South Sudan'], ['Spain', 'Spain'], ['Sri Lanka', 'Sri Lanka'], ['Sudan', 'Sudan'], ['Suriname', 'Suriname'], ['Swaziland', 'Swaziland'], ['Sweden', 'Sweden'], ['Switzerland', 'Switzerland'], ['Syria', 'Syria'], ['Taiwan', 'Taiwan'], ['Tajikistan', 'Tajikistan'], ['Tanzania', 'Tanzania'], ['Thailand', 'Thailand'], ['Togo', 'Togo'], ['Tonga', 'Tonga'], ['Trinidad and Tobago', 'Trinidad and Tobago'], ['Tunisia', 'Tunisia'], ['Turkey', 'Turkey'], ['Turkmenistan', 'Turkmenistan'], ['Tuvalu', 'Tuvalu'], ['Uganda', 'Uganda'], ['Ukraine', 'Ukraine'], ['United Arab Emirates', 'United Arab Emirates'], ['United Kingdom', 'United Kingdom'], ['Uruguay', 'Uruguay'], ['Uzbekistan', 'Uzbekistan'], ['Vanuatu', 'Vanuatu'], ['Vatican City', 'Vatican City'], ['Venezuela', 'Venezuela'], ['Vietnam', 'Vietnam'], ['Yemen', 'Yemen'], ['Zambia', 'Zambia'], ['Zimbabwe', 'Zimbabwe'], ['Prefer not to say', 'Prefer not to say']], label='What is your country of residence? ') age = models.StringField(choices=[['18-24', '18 - 24'], ['25-34', '25 - 34'], ['35-44', '35 - 44'], ['45-54', '45 - 54'], ['55-64', '55 - 64'], ['65+', '65 or older'], ['Prefer not to say', 'Prefer not to say']], label='What is your age (in years)?') class Disclaimer(Page): form_model = 'player' form_fields = ['consent'] class Demographics(Page): form_model = 'player' form_fields = ['sex', 'race', 'married', 'education', 'employment', 'location'] page_sequence = [Disclaimer, Demographics]