Package: ogusa
OG-USAOrgPackageTestingOG-USA is an overlapping-generations (OG) model that allows for dynamic general equilibrium analysis of fiscal policy for the United States. OG-USA is built on theOG-Coreframework. The model output includes changes in macroeconomic aggregates (GDP, investment, consumption), wages, interest rates, and the stream of tax revenues over time. Regularly updated documentation of the model theory--its output, and solution method--and the Python API is available athttps://pslmodels.github.io/OG-Coreand documentation of the specific United States calibration of the model is available athttps://pslmodels.github.io/OG-USA.DisclaimerThe model is constantly under development, and model components could change significantly. The package will have released versions, which will be checked against existing code prior to release. Stay tuned for an upcoming release!Using/contributing to OG-USAInstall theAnaconda distributionof PythonClone this repository to a directory on your computerFrom the terminal (or Conda command prompt), navigate to the directory to which you cloned this repository and runconda env create -f environment.yml. The process of creating theogusa-devconda environment can take more than 20 minutes. The pip install of theOG-Coredependency from GitHub takes most of the time.Then,conda activate ogusa-devThen install bypip install -e .Navigate to./examplesRun the model with an example reform from terminal/command prompt by typingpython run_og_usa.pyYou can adjust the./examples/run_og_usa.pyby modifying model parameters specified in the dictionary passed to thep.update_specifications()calls.Model outputs will be saved in the following files:./examples/OG-USA_example_plotsThis folder will contain a number of plots generated from OG-Core to help you visualize the output from your run./examples/ogusa_example_output.csvThis is a summary of the percentage changes in macro variables over the first ten years and in the steady-state../examples/OG-USA-Example/OUTPUT_BASELINE/model_params.pklModel parameters used in the baseline runSeeogcore.execute.pyfor items in the dictionary object in this pickle file./examples/OG-USA-Example/OUTPUT_BASELINE/SS/SS_vars.pklOutputs from the model steady state solution under the baseline policySeeogcore.SS.pyfor what is in the dictionary object in this pickle file./examples/OG-USA-Example/OUTPUT_BASELINE/TPI/TPI_vars.pklOutputs from the model timepath solution under the baseline policySeeogcore.TPI.pyfor what is in the dictionary object in this pickle fileAn analogous set of files in the./examples/OUTPUT_REFORMdirectory, which represent objects from the simulation of the reform policyNote that, depending on your machine, a full model run (solving for the full time path equilibrium for the baseline and reform policies) can take more than two hours of compute time.If you run into errors running the example script, please open a new issue in the OG-USA repo with a description of the issue and any relevant tracebacks you receive.Once the package is installed, one can adjust parameters in the OG-CoreSpecificationsobject using theCalibrationclass as follows:from ogcore.parameters import Specifications
from ogusa.calibrate import Calibration
p = Specifications()
c = Calibration(p)
updated_params = c.get_dict()
p.update_specifications({'initial_debt_ratio': updated_params['initial_debt_ratio']})Core MaintainersThe core maintainers of the OG-Core repository are:Jason DeBacker(GitHub handle:jdebacker), Associate Professor, Department of Economics, Darla Moore School of Business, University of South Carolina; President, PSL Foundation; Vice President of Research and Co-founder, Open Research Group, Inc.Richard W. Evans(GitHub handle:rickecon), Senior Research Fellow and Director of Open Policy, Center for Growth and Opportunity at Utah State University; President, Open Research Group, Inc.; Director, Open Source Economics Laboratory.Citing OG-USAOG-USA (Version #.#.#)[Source code],https://github.com/PSLmodels/OG-USA.