from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'survey' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female'], ['Non-binary/third-gender', 'Non-binary/third-gender'], ['Prefer not to say', 'Prefer not to say']], label='What is your gender?', widget=widgets.RadioSelect) Age = models.IntegerField(blank=True, label='What is your age?') Residence = models.StringField(choices=[['El Paso, Texas', 'El Paso, Texas'], ['Juarez, Mexico', 'Juarez, Mexico'], ['Las Cruces, New Mexico', 'Las Cruces, New Mexico']], label='Which best describes your primary place of residence?', widget=widgets.RadioSelect) Ethnicity = models.StringField(choices=[['African American', 'African American'], ['Asian', 'Asian'], ['Caucasian', 'Caucasian'], ['Latino or Hispanic', 'Latino or Hispanic'], ['Native American', 'Native American'], ['Pacific Islander', 'Pacific Islander'], ['Other', 'Other'], ['Two or more', 'Two or more'], ['Prefer not to say', 'Prefer not to say']], label='What is your ethnicity?', widget=widgets.RadioSelect) Education = models.StringField(choices=[['High School', 'High School'], ['GED', 'GED'], ['Other', 'Other']], label='What is the highest level of education you have completed?', widget=widgets.RadioSelect) Parents_education = models.StringField(choices=[['Some high school', 'Some high school'], ['High school', 'High school'], ['GED', 'GED'], ["Associate's degree", "Associate's degree"], ["Bachelor's degree", "Bachelor's degree"], ['Masters or PhD', 'Masters or PhD'], ['Professional degree (JD, MBA, MD)', 'Professional degree (JD, MBA, MD)'], ["I don't know", "I don't know"]], label='What is the highest level of education either of your parents completed?', widget=widgets.RadioSelect) Language = models.StringField(choices=[['English', 'English'], ['Spanish', 'Spanish'], ['Other', 'Other']], label='What was the primary language spoken in your home growing up?', widget=widgets.RadioSelect) Date = models.StringField(blank=True, label="In what month and year did you move into the place you're currently living at? (Please format as Month Year, e.g., June 2022).") Adults = models.IntegerField(blank=True, label='How many adults currently live or stay with you?') Government = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["I don't know", "I don't know"]], label='Is the federal, state, or local government helping to pay your rent, for example, through a rent assistance program?', widget=widgets.RadioSelect) Neighborhood = models.StringField(choices=[['Not at all safe', 'Not at all safe'], ['A little bit safe', 'A little bit safe'], ['Somewhat safe', 'Somewhat safe'], ['Quite safe', 'Quite safe'], ['Very safe', 'Very safe'], ["Don't know", "Don't know"]], label='In the neighborhood you live now, how safe do you feel in this neighborhood? Not at all safe, a little bit safe, somewhat safe, quite safe, or very safe?', widget=widgets.RadioSelect) Food = models.StringField(choices=[['Often true', 'Often true'], ['Sometimes true', 'Sometimes true'], ['Never true', 'Never true'], ["Don't know", "Don't know"]], label='In the last 12 months, please tell us whether the following statement was often true, sometimes true, or never true. The food that I bought just didn’t last and I didn’t have enough money to get more', widget=widgets.RadioSelect) Meals = models.StringField(choices=[['Yes- almost every month', 'Yes- almost every month'], ['Yes- some months but not every month', 'Yes- some months but not every month'], ['Yes- only 1 or 2 months', 'Yes- only 1 or 2 months'], ['No', 'No'], ["Don't know", "Don't know"]], label='In the last 12 months, did you ever cut the size of your meals or skip meals because there wasn’t enough money for food?', widget=widgets.RadioSelect) Hunger = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label="In the last 12 months, were you every hungry but didn't eat because there wasn't enough money for food?", widget=widgets.RadioSelect) unexp_expense = models.StringField(choices=[['Less than $100', 'Less than $100'], ['$100 - $200', '$100 - $200'], ['$201 - $500', '$201 - $500'], ['$501 - $1,000', '$501 - $1,000'], ['$1,001 - $1500', '$1,001 - $1500'], ['$1,501 - $2,000', '$1,501 - $2,000'], ['More than $2,000', 'More than $2,000'], ["Don't know", "Don't know"]], label='What is the most you feel confident you could pay for an unexpected expense right now?', widget=widgets.RadioSelect) payment_method = models.StringField(choices=[['Credit Card', 'Credit Card'], ['Savings Account', 'Savings Account'], ['Help from parents', 'Help from parents'], ['Help from friends', 'Help from friends'], ['Payday Loan', 'Payday Loan']], label='When answering the question above about unexpected expenses, how were you mainly thinking you would cover those expenses?', widget=widgets.RadioSelect) safety_growingup = models.StringField(choices=[['Not at all safe', 'Not at all safe'], ['A little bit safe', 'A little bit safe'], ['Somewhat safe', 'Somewhat safe'], ['Quite safe', 'Quite safe'], ['Very safe', 'Very safe'], ["Don't know", "Don't know"]], label='In the neighborhood you lived growing up, how safe do you feel in this neighborhood? Not at all safe, a little bit safe, somewhat safe, quite safe, or very safe?', widget=widgets.RadioSelect) parent_home = models.StringField(choices=[['Own', 'Own'], ['Rent', 'Rent'], ["I don't know", "I don't know"]], label='Do your parents own their home or do they rent?', widget=widgets.RadioSelect) temporary_stay = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Have you ever had to stay temporarily somewhere for less than a month?', widget=widgets.RadioSelect) temporary_stay_location = models.StringField(choices=[["Doesn't apply", "Doesn't apply"], ['With family members', 'With family members'], ['With friends', 'With friends'], ['In a shelter', 'In a shelter'], ['In a motel/hotel', 'In a motel/hotel'], ['In an abandoned house', 'In an abandoned house'], ['On the street', 'On the street']], label='If you ever had to stay temporarily somewhere for less than a month, where did you stay?', widget=widgets.RadioSelect) employment = models.StringField(choices=[['Employed full time (35+ hours a week)', 'Employed full time (35+ hours a week)'], ['Employed part time (less than 35 hours per week', 'Employed part time (less than 35 hours per week'], ['Unemployed (Not working, but looking for work)', 'Unemployed (Not working, but looking for work)'], ['Out of the labor force (Not working, but also not looking for work)', 'Out of the labor force (Not working, but also not looking for work)']], label='What best describes your current employment status:', widget=widgets.RadioSelect) military = models.StringField(choices=[['Yes, I currently serve in the military', 'Yes, I currently serve in the military'], ['Yes, I served in the military', 'Yes, I served in the military'], ['No, I have never served in the military', 'No, I have never served in the military']], label='Is your current or former employment military related?', widget=widgets.RadioSelect) welfare = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Welfare', widget=widgets.RadioSelect) ssi = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='SSI, Social Security Income', widget=widgets.RadioSelect) SSD = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='SSD, Disability', widget=widgets.RadioSelect) child_support = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Child support', widget=widgets.RadioSelect) veterans_benefits = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label="Veteran's Benefits", widget=widgets.RadioSelect) fulltime_job = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='A full time job', widget=widgets.RadioSelect) parttime_job = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='A part time job', widget=widgets.RadioSelect) sidejob = models.StringField(blank=True, choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='A side job here and there', widget=widgets.RadioSelect) other_job = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Some other source of income', widget=widgets.RadioSelect) broken_appliance = models.StringField(choices=[['Yes', 'Yes'], ['Yes, and it lasted more than three days', 'Yes, and it lasted more than three days'], ['No', 'No'], ["I don't know", "I don't know"]], label='Broken stove, refrigerator, or other appliance', widget=widgets.RadioSelect) broken_window = models.StringField(choices=[['Yes', 'Yes'], ['Yes, and it lasted more than three days', 'Yes, and it lasted more than three days'], ['No', 'No'], ["I don't knoow", "I don't know"]], label='Broken window', widget=widgets.RadioSelect) broken_door = models.StringField(choices=[['Yes', 'Yes'], ['Yes, and iit lasted more than three days', 'Yes, and it lasted more than three days'], ['No', 'No'], ["I don't know", "I don't know"]], label='Broken door to the outside or broken', widget=widgets.RadioSelect) pests = models.StringField(choices=[['Yes', 'Yes'], ['Yes, and it lasted more than three days', 'Yes, and it lasted more than three days'], ['No', 'No'], ["I don't know", "I don't know"]], label='Mice, rats, cockroaches, bedbugs, or other pests', widget=widgets.RadioSelect) electrical_problems = models.StringField(choices=[['Yes', 'Yes'], ['Yes, and it lasted more than three days', 'Yes, and it lasted more than three days'], ['No', 'No'], ["I don't knoow", "I don't knoow"]], label='Exposed wires or other electrical problems', widget=widgets.RadioSelect) hot_water = models.StringField(choices=[['Yes', 'Yes'], ['Yes, and it lasted more than three days', 'Yes, and it lasted more than three days'], ['No', 'No'], ["I don't knoow", "I don't know"]], label='No hot water', widget=widgets.RadioSelect) ac = models.StringField(choices=[['Yes', 'Yes'], ['Yes, and it lasted more than three days', 'Yes, and it lasted more than three days'], ['No', 'No'], ["I don't know", "I don't know"]], label='No heat or air conditioning because the equipment broke', widget=widgets.RadioSelect) runninig_water = models.StringField(choices=[['Yes', 'Yes'], ['Yes, and it lasted more than three days', 'Yes, and it lasted more than three days'], ['No', 'No'], ["I don't know", "I don't know"]], label='No running water', widget=widgets.RadioSelect) sinks = models.StringField(choices=[['Yes', 'Yes'], ['Yes, and it lasted more than three days', 'Yes, and it lasted more than three days'], ['No', 'No'], ["I don't know", "I don't know"]], label='Stopped up sinks, toilet, bath or shower', widget=widgets.RadioSelect) evicted_current = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Been evicted?', widget=widgets.RadioSelect) prison_current = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Been in prison?', widget=widgets.RadioSelect) abuse_current = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Been in an abusive relationship?', widget=widgets.RadioSelect) drugs_current = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Been addicted to drugs?', widget=widgets.RadioSelect) ss_current = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Had their children taken away by social services?', widget=widgets.RadioSelect) murder_current = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't knoow", "Don't know"]], label='Had a close family member or friend murdered?', widget=widgets.RadioSelect) evicted_growingup = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Been evicted?', widget=widgets.RadioSelect) prison_growingup = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Been in prison?', widget=widgets.RadioSelect) abuse_growingup = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Been in an abusive relationship?', widget=widgets.RadioSelect) drugs_growingup = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Been addicted to drugs?', widget=widgets.RadioSelect) ss_growingup = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Had their children taken away by social services?', widget=widgets.RadioSelect) murder_growingup = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No'], ["Don't know", "Don't know"]], label='Had a close family member or friend murdered?', widget=widgets.RadioSelect) class Survey1(Page): form_model = 'player' form_fields = ['Gender', 'Age', 'Ethnicity', 'Education'] class Survey2(Page): form_model = 'player' form_fields = ['Parents_education', 'Language'] class Survey3(Page): form_model = 'player' form_fields = ['ssi', 'SSD', 'child_support', 'veterans_benefits', 'fulltime_job', 'parttime_job', 'sidejob', 'other_job'] class Survey4(Page): form_model = 'player' form_fields = ['Date'] class Survey5(Page): form_model = 'player' form_fields = ['broken_appliance', 'broken_window', 'broken_door', 'pests', 'electrical_problems', 'hot_water', 'ac', 'runninig_water', 'sinks'] class Survey6(Page): form_model = 'player' form_fields = ['Adults', 'Government', 'Neighborhood'] class Survey7(Page): form_model = 'player' form_fields = ['evicted_current', 'prison_current', 'abuse_current', 'drugs_current', 'ss_current', 'murder_current'] class Survey8(Page): form_model = 'player' form_fields = ['Food', 'Meals', 'Hunger'] class Survey9(Page): form_model = 'player' form_fields = ['unexp_expense', 'payment_method', 'safety_growingup'] class Survey10(Page): form_model = 'player' form_fields = ['evicted_growingup', 'prison_growingup', 'abuse_growingup', 'drugs_growingup', 'ss_growingup', 'murder_growingup'] class Survey11(Page): form_model = 'player' form_fields = ['parent_home', 'temporary_stay', 'temporary_stay_location', 'employment', 'military'] class Thank_you(Page): form_model = 'player' page_sequence = [Survey1, Survey2, Survey3, Survey4, Survey5, Survey6, Survey7, Survey8, Survey9, Survey10, Survey11, Thank_you]