This repository contains source code and data used to calibrate the OG-USA model.
- 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']})
The organization of this repository will be changing rapidly, but we offer the following guide for working with the existing scripts: