Skip to content

Source code and data to calibrate the OG-USA model

Notifications You must be signed in to change notification settings

jwal1024/OG-USA-Calibration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Source code and data to calibrate the OG-USA model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.1%
  • R 8.9%