A general equilibribum overlapping generations model for fiscal policy analysis
Project description
OG-Core
OG-Core is an overlapping-generations (OG) model core theory, logic, and solution method algorithms that allow for dynamic general equilibrium analysis of fiscal policy. OG-Core provides a general framework and is a dependency of several country-specific OG models, such as OG-USA and OG-UK. 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 here.
Disclaimer
The model is currently under development. Users should be forewarned that the model components could change significantly. Therefore, there is NO GUARANTEE OF ACCURACY. THE CODE SHOULD NOT CURRENTLY BE USED FOR PUBLICATIONS, JOURNAL ARTICLES, OR RESEARCH PURPOSES. Essentially, you should assume the calculations are unreliable until we finish the code re-architecture and have checked the results against other existing implementations of the tax code. 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-Core
- 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 ogcore-dev
- Then install by
pip install -e .
- Navigate to
./run_examples
- Run the model with an example reform from terminal/command prompt by typing
python run_ogcore_example.py
- You can adjust the
./run_examples/run_ogcore_example.py
by modifying model parameters specified in theog_spec
dictionary. - Model outputs will be saved in the following files:
./run_examples/run_example_plots
- This folder will contain a number of plots generated from OG-Core to help you visualize the output from your run
./run_examples/ogcore_example_output.csv
- This is a summary of the percentage changes in macro variables over the first ten years and in the steady-state.
./run_examples/OUTPUT_BASELINE/model_params.pkl
- Model parameters used in the baseline run
- See
execute.py
for items in the dictionary object in this pickle file
./run_examples/OUTPUT_BASELINE/SS/SS_vars.pkl
- Outputs from the model steady state solution under the baseline policy
- See
SS.py
for what is in the dictionary object in this pickle file
./run_examples/OUTPUT_BASELINE/TPI/TPI_vars.pkl
- Outputs from the model timepath solution under the baseline policy
- See
TPI.py
for what is in the dictionary object in this pickle file
- An analogous set of files in the
./run_examples/OUTPUT_REFORM
directory, which represent objects from the simulation of the reform policy
Note 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-Core repo with a description of the issue and any relevant tracebacks you receive.
The CSV output file ./run_examples/ogcore_example_output.csv
can be compared to the ./run_examples/expected_ogcore_example_output.csv
file that is checked into the repository to confirm that you are generating the expected output. The easiest way to do this is to use the sh example-diffs
command (or example-diffs
on Windows) from the run_examples
directory. If you run into errors running the example script, please open a new issue in the OG-Core repo with a description of the issue and any relevant tracebacks you receive.
Core Maintainers
The 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), Advisory Board Visiting Fellow, Center for Public Finance, Baker Institute for Public Policy at Rice University; President, Open Research Group, Inc.; Director, Open Source Economics Laboratory
Citing OG-Core
OG-Core (Version 0.0.0)[Source code], https://github.com/PSLmodels/OG-Core
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ogcore-0.8.0.tar.gz
.
File metadata
- Download URL: ogcore-0.8.0.tar.gz
- Upload date:
- Size: 379.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1724ea2b0fd976abde20b56ddd61b628ed781c4fb8c43bb830628597493d3006 |
|
MD5 | 6119b4627ee3c1f61c13e7b3ead13df2 |
|
BLAKE2b-256 | 6ccfa1b9194a73b25a59a6524d893444b946cf597503288bc5a6c4c5db1a47ee |
File details
Details for the file ogcore-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: ogcore-0.8.0-py3-none-any.whl
- Upload date:
- Size: 389.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3574ec0b9aedc64ab16bde429b89ddaed63dd6689acdadbe1a2cb7a1d4e007d |
|
MD5 | 3f187bd86f0e7f8fe1b075cdaac85351 |
|
BLAKE2b-256 | 7bcd36e00f8b57387013c5bc6329d62c0addfa471b96ab80b4b55f77d6495a9c |