Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.21 KB

README.md

File metadata and controls

25 lines (20 loc) · 1.21 KB

OG-USA-Calibration

This repository contains source code and data used to calibrate the OG-USA model.

Using/contributing to OG-USA-Calibration

  • Install the Anaconda distribution of Python
  • Clone this repository to a directory on your computer
  • From the terminal (or Conda command prompt), navigate to the directory to which you cloned this repository and run conda env create -f environment.yml
  • Then, conda activate ogusa-calibrate-dev
  • Then install by pip install -e .
  • You will also need to install OG-USA package, which you can build from source following the instructions in the OG-USA repo README

Once the package is installed, you an example of this to update the parameters used in OG-USA using Python is the following:

from ogusa.parameters import Specifications
from ogusa_calibrate.calibrate import Calibration
p = Specifications()
c = Calibration(p)
updated_params = c.get_dict()
p.update_specifications({'initial_debt_ratio': updated_params['initial_debt_ratio']})

Disclaimer:

The organization of this repository will be changing rapidly, but we offer the following guide for working with the existing scripts: