from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '' class Constants(BaseConstants): name_in_url = 'Demographics_CRT2' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Age = models.IntegerField(label='How old are you?') Gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female'], ['Other', 'Other']], label='What gender do you identify as?') Studies = models.StringField(label='What is your main academic study? e.g. Economics') Mindfulness = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='Do you engage in mindfulness activities (e.g. Yoga, Meditation, Mindfulness colouring in) twice or more a week normally?') Fitness = models.StringField(choices=[['Very Active', '6 or more times a week'], ['Active', '5 times a week'], ['Moderately Active', '3-4 times a week'], ['Inactive', '1-2 times a week'], ['None', '0 times a week']], label='How many times a week on average do you participate in physical exercise? ') Emotions_1 = models.StringField(choices=[['anger', 'anger'], ['anxiety', 'anxiety'], ['contentment', 'contentment'], ['fatigue', 'fatigue'], ['happiness', 'happiness'], ['irritation', 'irritation'], ['mood swings', 'mood swings'], ['withdrawal', 'withdrawal'], ['frustration', 'frustration'], ['upset', 'upset'], ['none of the above', 'none of the above']], label='Which of the following best describes the emotions you experience during the first half of the experiment?') Emotions_2 = models.StringField(choices=[['anger', 'anger'], ['anxiety', 'anxiety'], ['contentment', 'contentment'], ['fatigue', 'fatigue'], ['happiness', 'happiness'], ['irritation', 'irritation'], ['mood swings', 'mood swings'], ['withdrawal', 'withdrawal'], ['frustration', 'frustration'], ['upset', 'upset'], ['none of the above', 'none of the above']], label='Which of the following best describes the emotions you experience during the second half of the experiment?') Sisters = models.IntegerField(label='How many sisters do you have?') Brothers = models.IntegerField(label='How many brothers do you have?') siblingrank = models.StringField(choices=[['Oldest', 'Oldest'], ['Middle', 'Middle'], ['Youngest', 'Youngest'], ['Only', 'Only Child']], label='Are you the oldest, middle or youngest sibling?') DU_Athlete = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='Do you play any sports at university level or above? (i.e. DU team)') sports = models.LongStringField(label="What are the main sports you do? Please list all sports you do once a week (e.g. Netball/Gym). Write N/A if you don't participate in any.") individual_team = models.StringField(choices=[['Individual', 'Individual'], ['Team', 'Team']], label='Do you prefer individual or team sports?') CRT_Experience = models.StringField(choices=[['Yes', 'Yes'], ['No ', 'No '], ["I don't know", "I don't know"]], label='Have you ever completed a Cognitive Reasoning Test before today?') Sibling = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Do you have any siblings?') frustration = models.StringField(choices=[['Strongly agree', 'Strongly agree'], ['Agree', 'Agree'], ['Somewhat Agree', 'Somewhat Agree'], ['Somewhat Disagree', 'Somewhat Disagree'], ['Disagree ', 'Disagree '], ['Strongly Disagree', 'Strongly Disagree']], label='To what extent do you agree with this statement: I felt less frustration in the second game, after the exercise') cooperation = models.StringField(choices=[['Strongly agree', 'Strongly agree'], ['Agree', 'Agree'], ['Somewhat agree', 'Somewhat agree'], ['Somewhat disagree', 'Somewhat disagree'], ['Disagree', 'Disagree'], ['Strongly disagree', 'Strongly disagree']], label="To what extent do you agree with this statement: 'I felt more cooperative after the 15 minute exercise'") crtbarrel = models.IntegerField(label='If John can drink one barrel of water in 6 days, and Mary can drink one barrel of water in 12 days, how long would it take them to drink one barrel of water together? _____ days') crtjerry = models.IntegerField(label='Jerry received both the 15th highest and the 15th lowest mark in the class. How many students are in the class? ______ students') crtsimon = models.StringField(choices=[['Broken even in the stock market.', 'Broken even in the stock market.'], ['Ahead of where he began.', 'Ahead of where he began.'], ['Lost money.', 'Lost money.']], label='Simon decided to invest $8,000 in the stock market one day early in 2008. Six months after he invested, on July 17, the stocks he had pur- chased were down 50%. Fortunately for Simon, from July 17 to October 17, the stocks he had purchased went up 75%.')