Skip to content

jantsje/classroom_pgg

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

classroom_pgg

This application can be used to run Public Goods Games (PGGs) in the classroom. The application allows for multiple treatments, including cheap talk (chat) It was developed for use in this course. The idea is that you start with a one-shot public goods game without any additional features. Every week (or class) you can add a feature, by using oTree Rooms to adjust the configurations. You can analyze the within-subjects results at the end of the course, and compare the average contributions under different parameters.

To install the app to your local oTree directory, copy the folder 'classroom_pgg' to your oTree Django project and extend the session configurations in your settings.py at the root of the oTree directory:

SESSION_CONFIGS = [
    dict(	
        name='classroom_pgg',
        display_name="Experiment",
        num_demo_participants=3,
        players_per_group=3,
        num_rounds=1,
        efficiency_factor=1.6,
        punishment_factor=3,
        app_sequence=['classroom_pgg'],
        cheap_talk=False,
        punishment=False,
        threshold=0,
    )
                  ]

Treatments

  • One-shot game versus sequential game (change num_rounds)
  • Cheap talk (set cheap_talk to True to add a chatbox to the Contribution page)
  • Punishment (set punishment to True to add a Deduction page)
  • Threshold (set threshold to any number above 0)

Analysis file in Rmarkdown

The file analyze_classroom_pgg.Rmd can be used to analyze the results. The file will load the data provided in the _DATA folder. Currently it loads the data from the 2019 course (which is ignored by Git due to privacy issues).

Credits

Punishment page from Philipp Chapkovski. Threshold feature adapted from BowieG.

About

Classroom public goods games in oTree, with punishment, threshold and chat functions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published