from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, safe_json ) author = 'Aysegul Engin' doc = """ Implementation of Rational - Experiential Inventory (NCF, FI). Items are taken from: Norris, P., & Epstein, S. (2011). An experiential thinking style: Its facets and relations with objective and subjective criterion measures. Journal of personality, 79(5), 1043-1080. """ class Constants(BaseConstants): name_in_url = 'rei' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): def make_field(label): return models.IntegerField(initial = None, choices=[[4,'very strongly agree'],[3,'strongly agree'],[2,'moderately agree'], [1,'slightly agree'], [0,'neither agree nor disagree'], [-1,'slightly disagree'],[-2,'moderately disagree'], [-3,'strongly disagree'],[-4,'very strongly disagree']], verbose_name=label, #widget=widgets.Select() ) rationality_score = models.IntegerField() intuition_score = models.IntegerField() emotionality_score = models.IntegerField() imagination_score = models.IntegerField() experiential_score = models.IntegerField() q_rei_1 = make_field('I enjoy problems that require hard thinking.') q_rei_13 = make_field('I enjoy reading things that evoke visual images.') q_rei_23 = make_field('My emotions don’t make much difference in my life.') q_rei_33 = make_field('I like to rely on my intuitive impressions.') q_rei_2 = make_field('I am not very good in solving problems that require careful logical analysis.') q_rei_14 =make_field('I enjoy imagining things.') q_rei_24 = make_field('Emotions don’t really mean much: they come and go.') q_rei_34 = make_field('I often go by my instincts when deciding on a course of action.') q_rei_3 = make_field('I enjoy intellectual challenges.') q_rei_15 = make_field('I can clearly picture or remember some sculpture or natural object (not alive) that I think is very beautiful.') q_rei_25 = make_field('When I have a strong emotional experience, the effect stays with me for a long time.') q_rei_35 = make_field('I don’t think it is a good idea to rely on one’s intuition for important decisions.') q_rei_4 = make_field('I prefer complex to simple problems.') q_rei_16 = make_field('I identify strongly with characters in movies or books I read.') q_rei_26 = make_field('When I’m sad, it is often a very strong feeling.') q_rei_36 = make_field('I trust my initial feelings about people.') q_rei_5 = make_field('I don’t like to have to do a lot of thinking.') q_rei_17 = make_field('I tend to describe things by using images, metaphors or creative comparisons.') q_rei_27 = make_field('Things that make me feel emotional don’t seem to affect other people as much.') q_rei_37 = make_field('I tend to use my heart as a guide for my actions.') q_rei_6 = make_field('Reasoning things out carefully is not one of my strong points.') q_rei_18 = make_field('Art is really important to me.') q_rei_28 = make_field('Everyday experiences often evoke strong feelings in me.') q_rei_38 = make_field('I enjoy learning by doing something, instead of figuring it out first.') q_rei_7 = make_field('I am not a very analytical thinker.') q_rei_19 = make_field('Sometimes I like to just sit back and watch things happen.') q_rei_29 = make_field('I’d rather be upset sometimes and happy sometimes, than always feel calm.') q_rei_39 = make_field('I can often tell how people feel without them having to say anything.') q_rei_8 = make_field('I try to avoid situations that require thinking in depth about something.') q_rei_20 = make_field('I have favorite poems and paintings that mean a lot to me.') q_rei_30 = make_field('I don’t react emotionally to scary movies or books as much as other people do.') q_rei_40 = make_field('I generally don’t depend on my feelings to help me make decisions.') q_rei_9 = make_field('I am much better at figuring things out logically than most people.') q_rei_21 = make_field('When I travel or drive somewhere, I always watch the landscape and scenery.') q_rei_31 = make_field('My anger is often very intense.') q_rei_41 = make_field('For me, descriptions of actual people’s experiences are more convincing than discussions about the "facts".') q_rei_10 = make_field('I have a logical mind.') q_rei_22 = make_field('I almost never think in visual images.') q_rei_11 = make_field(' Using logic usually works well for me in figuring out problems in my life.') q_rei_32 = make_field('When I’m happy, the feeling is usually more like contentment than like exhilaration or excitement.') q_rei_42 = make_field('I’m not a very spontaneous person.') q_rei_12 = make_field('Knowing the answer without understanding the reason behind it is good enough for me.') def set_rationality_score(self): self.rationality_score = getattr(self,'q_rei_1') - getattr(self,'q_rei_2') + getattr(self,'q_rei_3') + getattr(self,'q_rei_4') - getattr(self,'q_rei_5') - getattr(self,'q_rei_6') - getattr(self,'q_rei_7') - getattr(self,'q_rei_8') + getattr(self,'q_rei_9') + getattr(self,'q_rei_10') + getattr(self,'q_rei_11') - getattr(self,'q_rei_12') def set_intuition_score(self): self.intuition_score = getattr(self,'q_rei_33') + getattr(self,'q_rei_34') - getattr(self,'q_rei_35') + getattr(self,'q_rei_36') + getattr(self,'q_rei_37') + getattr(self,'q_rei_38') + getattr(self,'q_rei_39') - getattr(self,'q_rei_40') + getattr(self,'q_rei_41') - getattr(self,'q_rei_42') def set_emotionality_score(self): self.emotionality_score = - getattr(self,'q_rei_23') - getattr(self,'q_rei_24') + getattr(self,'q_rei_25') +getattr(self,'q_rei_26') +getattr(self,'q_rei_27') + getattr(self,'q_rei_28') +getattr(self,'q_rei_29') - getattr(self,'q_rei_30') + getattr(self,'q_rei_31') - getattr(self,'q_rei_32') def set_imagination_score(self): self.imagination_score = getattr(self,'q_rei_13') + getattr(self,'q_rei_14') + getattr(self,'q_rei_15') + getattr(self,'q_rei_16') + getattr(self,'q_rei_17') + getattr(self,'q_rei_18') + getattr(self,'q_rei_19') + getattr(self,'q_rei_20') + getattr(self,'q_rei_21') - getattr(self,'q_rei_22') def set_experiential_score(self): self.experiential_score = getattr(self, 'intuition_score') + getattr(self, 'emotionality_score') + getattr(self, 'imagination_score')