This code replicates figures and tables for:
Almås, I., Auffhammer, M., Bold, T., Bolliger, I., et al., “Destructive Behavior, Judgment, and Economic Decision-making under Thermal Stress.” Cambridge, MA. NBER Working Paper. http://www.nber.org/papers/w25785.pdf.
The following environmentally-related figures and tables are created in this repository:
- Fig. 2
- Fig. A.2.1
- Fig. A.3.1
- Fig. A.4.1
- Fig. B.2.1
- Fig. B.2.2
To ensure replicability, we recommend you create a conda environment to match that used to run this code for the publication. To do so, install conda and run the following from the root directory of this repository:
conda env create -f environment/environment.yml
conda activate temp-behavior-env
jupyter lab
Once you are in the conda environment and have opened up a Jupyter Lab instance, there are two notebooks to run:
concatenate_meas.ipynb
loads and processes raw data.publication_figures_and_tables.ipynb
creates figures and tables from the processed data
Note that to run this code you must have access to the raw data folder on Dropbox. You will need to change the home_dir
parameter at the top of the notebooks to point to this folder once you have downloaded it.