from otree.api import * author = 'Alistair Munro, Fitawhidan Nashuha, and Gerald Ezra Charles' doc = """ Post Session Survey. """ class C(BaseConstants): NAME_IN_URL = 'e_Post_Game_Survey' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): educ = models.StringField( choices=[ ['Primary School', 'Primary School'], ['Junior High School', 'Junior High School'], ['Senior High School', 'Senior High School / Vocational High School'], ['Vocational School/College', 'Vocational School / College (D1/D2/D3)'], ['Bachelor\'s or Equivalent', 'Bachelor’s Degree (S1 / D4)'], ['Master\'s Degree', 'Master’s Degree (S2)'], ['Doctoral Degree', 'Doctoral Degree (S3)'], ['I do not know', 'I do not know / Prefer not to answer'], ['Never attend school', 'Never attended school'], ], label='What is the highest level of education you have completed?', widget=widgets.RadioSelect, ) HH_Number = models.IntegerField( label='How many people live in your household?' ) HH_5yo = models.IntegerField( label='
How many members of your household are 5 years old or younger?
' 'Enter "0" if none
' ) HH_Decision_Maker = models.StringField( choices=[ ['Me', 'Myself'], ['Spouse', 'My spouse'], ['Father', 'My father'], ['Mother', 'My mother'], ['Sister', 'My sister'], ['Brother', 'My brother'], ['Grandfather', 'My grandfather'], ['Grandmother', 'My grandmother'], ['Uncle', 'My uncle'], ['Aunt', 'My aunt'], ['Others', 'Others'] ], label='Who is the main decision maker in your household?', widget=widgets.RadioSelect, ) Religion = models.StringField( choices=[ ['Islam', 'Islam'], ['Catholic', 'Catholic'], ['Christian', 'Christian'], ['Hindu', 'Hindu'], ['Buddha', 'Buddhist'], ['Konghucu/Confucius', 'Confucian'], ['Others', 'Others'] ], label='What is your religion?', widget=widgets.RadioSelect, ) Smoke_Cigarettes = models.BooleanField( choices=[[True, 'Yes, I smoke'], [False, 'No, I do not smoke']], label='Do you smoke cigarettes?', widget=widgets.RadioSelect, ) Smoke_Ecig = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Do you use electronic cigarettes (e-cigarettes)?
' '(including vape, pod, mod, and similar devices)', widget=widgets.RadioSelect, ) Smoke_Chew = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Do you chew tobacco?', widget=widgets.RadioSelect, ) Smoke_Hookah = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Do you use hookah or shisha?', widget=widgets.RadioSelect, ) Drink_Alcohol = models.StringField( choices=[ ['No', 'No, I do not drink alcohol'], ['Yes', 'Yes, I drink alcohol'], ['Used to', 'I used to drink alcohol but no longer do'], ], label='Do you consume alcoholic beverages?', widget=widgets.RadioSelectHorizontal, ) # Debt Profile Debt_A = models.StringField( label = 'In the PAST 12 MONTHS, have you applied for a loan using a mobile phone?' '', choices = [['Yes', 'Yes'], ['No', 'No'], ['Refused', 'I refuse to answer'], ], widget=widgets.RadioSelect, ) Debt_B = models.StringField( label = 'Did you receive this loan?' '', choices = [['Yes', 'Yes'], ['No', 'No'], ['Refused', 'I refuse to answer'], ], widget=widgets.RadioSelect, ) Debt_Online_Past = models.StringField( choices=[['True', 'Yes'], ['False', 'No'], ['Refused', 'I refuse to answer'], ], label='Have you ever had online debt in the past?' '(For example, borrowing money through an app or online platform where funds were transferred to your bank account, ' 'which is now fully repaid or written off. Includes loans from digital banks. ' 'Does not include paylater or installment purchases.)
', widget=widgets.RadioSelectHorizontal, ) Debt_Paylater_Credit_Past = models.StringField( choices=[['True', 'Yes'], ['False', 'No'], ['Refused', 'I refuse to answer'], ], label='Have you ever used paylater services or credit installments for online shopping in the past?
' '(Does not include vehicles or electronic goods such as phones, tablets, laptops/PCs, or large household appliances.)', widget=widgets.RadioSelectHorizontal, ) Debt_Family_Past = models.StringField( choices=[['True', 'Yes'], ['False', 'No'], ['Refused', 'I refuse to answer'], ], label='Have you ever borrowed money from friends or family in the past?', widget=widgets.RadioSelectHorizontal, ) Debt_Online = models.StringField( choices=[ ['True', 'Yes, I currently have online debt'], ['False', 'No, I currently do not have online debt'], ['Refused', 'I refuse to answer'], ], label='Do you currently have online debt?', widget=widgets.RadioSelect, ) Debt_Paylater_Credit = models.StringField( choices=[ ['True', 'Yes, I currently have paylater debt'], ['False', 'No, I currently do not have paylater debt'], ['Refused', 'I refuse to answer'], ], label='Do you currently have paylater or credit installments for online shopping?
' '(Does not include vehicles or electronic goods such as phones, tablets, laptops/PCs, or household appliances.)', widget=widgets.RadioSelect, ) Debt_Family = models.StringField( choices=[ ['True', 'Yes, I have debt to family members'], ['False', 'No, I do not have debt to family members'], ['Refused', 'I refuse to answer'], ], label='Do you currently have debt to your family?', widget=widgets.RadioSelect, ) Debt_Friend = models.StringField( choices=[ ['True', 'Yes, I have debt to friends'], ['False', 'No, I do not have debt to friends'], ['Refused', 'I refuse to answer'], ], label='Do you currently have debt to your friends?', widget=widgets.RadioSelect, ) Debt_Private_Lender = models.StringField( choices=[ ['True', 'Yes, I have borrowed to other private lenders'], ['False', 'No, I never borrowed to other private lenders'], ['Refused', 'I refuse to answer'], ], label='Have you borrowed from another private lender?If you deposit Rp 100,000 in a savings account with 2% annual interest and no fees, ' 'how much will you have after 1 year?
' 'Please enter the amount in rupiah (no decimals).' ) OECD_Division = models.IntegerField( label='Imagine a family with 5 children. ' 'The parents have Rp 10,000,000 to divide equally among their children. ' 'How much does each child receive?
' 'Please enter the amount in rupiah (no decimals).
', min=0, max=10_000_000, ) OECD_Time_Value = models.StringField( choices=[ ['1', 'I will be able to buy more goods'], ['2', 'I will be able to buy almost the same amount of goods'], ['3', 'I will be able to buy fewer goods'], ['4', 'It depends on the goods I buy'], ['5', 'It depends on price changes during the year'], ['99', 'I do not know'], ], label='If you have Rp 10,000,000 today and keep it in a drawer for one year, ' 'how much will you be able to buy with it after one year compared to today?
', widget=widgets.RadioSelect ) OECD_Diversification = models.StringField( choices=[['1', 'True'], ['2', 'False'], ['99', 'I do not know']], label='What do you think about the following statement:
' 'Putting all your money in one place is risky because you could lose everything if something goes wrong.', widget=widgets.RadioSelect ) OECD_RisknReturn = models.StringField( choices=[['1', 'True'], ['2', 'False'], ['99', 'I do not know']], label='What do you think about the following statement:
' 'Investments that offer high returns tend to have high risk.', widget=widgets.RadioSelect, ) OECD_Interest = models.IntegerField( min=0, max=10_000_000, label='If you deposit Rp 100,000 in a savings account with 2% annual interest and no fees, ' 'how much will you have after 1 year?
' 'Please enter the amount in rupiah (no decimals).' ) OECD_Interest_Compound = models.StringField( choices=[ ['1', 'More than Rp 110,000'], ['2', 'Exactly Rp 110,000'], ['3', 'Less than Rp 110,000'], ['4', 'Cannot be determined from the information given'], ['99', 'I do not know'], ], label='If you keep the money there for 5 years, how much will you have?', widget=widgets.RadioSelect ) OECD_Interest_Loan = models.IntegerField( min=0, max=10_000_000, label='You lend Rp 1,000,000 to a friend overnight and they return Rp 1,000,000 the next day. ' 'How much interest did they pay?
' 'Please enter the amount in rupiah (no decimals).' ) OECD_Diversification2 = models.StringField( choices=[['1', 'True'], ['2', 'False'], ['99', 'I do not know']], label='What do you think about the following statement:
' '"Putting all your money in one place is much better because it is easier to manage without the risk of losing assets."', widget=widgets.RadioSelect )