Navigation Menu

Skip to content

lphansen/Climate

Repository files navigation

Pricing Uncertainty Induced by Climate Change

This repository contains codes and jupyter notebooks which estimates and demonstrates results of the empirical model in "Pricing Uncertainty Induced by Climate Change" by Michael Barnett, William Brock and Lars Peter Hansen. Latest version could be found here.

Acessing our jupyter notebook

To access our notebook, please follow steps below:

  1. Open a Windows command prompt or Mac command terminal and change into the folder you would like to store the files.
    • You can do this using the command cd in the command prompt.
    • For example, running "cd “C:\Users\username\python” " (don’t forget “” around the path name to use an absolute path) would lead me to my designated folder.
cd [folder path name]
  1. Clone the github repository for the paper
git clone https://github.com/lphansen/Climate
  1. To download the data you'll need, go to https://drive.google.com/drive/folders/1TVVqditjA489NNSD8H32u0e4eIJkoj0r?usp=sharing and copy the .pickle files into the subfolder data under the git repo Climate you just cloned.
  2. Run install.bat for those who used windows or run install.sh for those who used Mac OS by double clicking the file.
  3. Go back to command line prompt, change directories into the ‘Climate’ folder and open jupyter notebook by running below in command prompt
cd Climate
jupyter notebook
  1. We provide three notebooks:
    • "PaperResultsIllustration.ipynb" demonstrates interactive figures shown in the paper.
    • “ConsumptionModel.ipynb” demonstrates the computational details and codes on how we solve the model under consumption damage settings
    • “GrowthModel.ipynb” demonstrates growth damage settings. Click on the files to access them.
  2. Run notebooks cell by cell or click "Run all" from "kernel" in the menu bar to see details about our model results and computational details.

Acessing our MATLAB codes

Please refers to the MATLAB folder

About

Code to accompany the paper "Pricing Uncertainty Induced by Climate Change"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published