gegravity: General Equilibrium Gravity Modeling in Python
gegravity is a Python package containing tools used to estimate general equilibrium (GE) structural gravity models and simulate counterfactual experiments. The package is based on the well established version of the gravity model described by Yotov, Piermartini, Monteiro, and Larch (2016) An Advanced Guide to Trade Policy Analysis: The Structural Gravity Model. It implements the structural GE gravity model in a general, robust, and easy to use manner in an effort to make GE gravity modeling more accessible for researchers and policy analysts.
The package provides several useful tools for structural gravity modeling.
-
It computes theory consistent estimates of the structural multilateral resistance terms of Anderson and van Wincoop (2003) "Gravity with Gravitas" from standard econometric gravity results.
-
It simulates GE effects from counterfactual experiments such as new trade agreements or changes to other trade costs. The model can be flexibly used to study aggregate or sector level trade as well as many different types of trade costs and policies.
-
It conducts Monte Carlo simulations that provide a means to compute standard errors and other measures of statistical precision for the GE model results.
For more information about the GE gravity model, its implementation, and the various components of the package, see the companion paper "gegravity: General Equilibrium Gravity Modeling in Python" as well as the technical documentation.
Citation and license
The package is publicly available and free to use under the MIT license. Users are asked to please cite the following document,
Herman, Peter (2021) "gegravity: General Equilibrium Gravity Modeling in Python." USITC Economics Working Paper 2021-04-B.
Metadata
Release files for gegravity 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gegravity-0.3.tar.gz | 54.9 kB | Without provenance | Details for gegravity-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gegravity-0.3-py3-none-any.whl | Python 3 | none | any | Details for gegravity-0.3-py3-none-any.whl |
Total release size: 111.2 kB
Release files / gegravity-0.3.tar.gz
| Download URL | gegravity-0.3.tar.gz |
|---|---|
| Size | 54.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
855ccac9a76b068263edffab465cd0d7802c7d26d647ab35ef285a2775236fa3
|
|
BLAKE2b-256 checksum How to use checksums |
6462a3d9593518cfc28f147be6ffe077b528633252e1ad047ba5bc54ebb27a59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.9
|
Release files / gegravity-0.3-py3-none-any.whl
| Download URL | gegravity-0.3-py3-none-any.whl |
|---|---|
| Size | 56.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78601f102ac2f6d39c2a236cddcfc7c39f6053f71b43f9f19e4732f077fb6bcb
|
|
BLAKE2b-256 checksum How to use checksums |
b6b17c4c7f119a2dd6ac56967a988a698b5759e65524656ad1242988feebc0e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.9
|
Security for gegravity 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.