Interacted Panel VAR Toolbox
What is this?
Toolbox that estimates a panel VAR allowing coefficients to vary determinstically with individual characteristics as employed in Towbin and Weber (2011) "Limits of Floating Exchange Rates: the Role of Foreign Currency Debt and Import Structure".
This toolbox is a translation of Matlab code to Python.
This toolbox includes:
- An equation-by-equation OLS VAR estimator for (unbalanced) panels with deterministically varying coefficients.
- An impulse response function generating file which accounts for the presence of interaction terms.
- A generator of bootstrapped parametric or non-parametric confidence intervals for the IRFs.
- A simple program which graphs impulse responses.
- A manual.pdf documentation file.
How to use:
- Prepare data in excel format: All data that is used in any of the files has to be in a standardized order. Each unit (country)needs to have the same time length, if units have different length in the original data missing observations (NaN) need to be used to generate identical time length. The data needs to be sorted in the sense that the observations 1 to T are of unit one, T+1 to 2*T of unit 2 and so on.
- Define exogenous interacted variables.
- Define a restriction matrix with zeros and ones defining for which equation which interaction and variable a restriction is supposed to be applied (ones leading to an exclusion of the interaction/or variable).
- Use IPVARexample script as a template for developing your script.
- Change directory to src folder and run this script in a command prompt, for example: python IPVARexample.py
- The produced graphs will be placed in a graphs folder.
Prerequisites:
- Prior to using this toolbox please install numpy, scipy, pandas and matplotlib packages.
Who should I contact for questions?
- Alexei Goumilevski agoumilevski@imf.org
- Sebastian Weber SWeber@imf.org
Metadata
Release files for IPVAR 1.0.0
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 |
|---|---|---|---|---|
| ipvar-1.0.0.tar.gz | 1.5 MB | Without provenance | Details for ipvar-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipvar-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ipvar-1.0.0-py3-none-any.whl |
Total release size: 3.0 MB
Release files / ipvar-1.0.0.tar.gz
| Download URL | ipvar-1.0.0.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fb259fee2c6aabcbe6e13ddbf366bfc483ae7851a08159c17b5aa8ddf8a069c
|
|
BLAKE2b-256 checksum How to use checksums |
4175b6cb82ed27f3f22e33fff16c29bb7e2906f4cf6d4404378bbad55df97005
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Linux/6.17.0-8-generic
|
Release files / ipvar-1.0.0-py3-none-any.whl
| Download URL | ipvar-1.0.0-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52d62497b6e7aae47cc23d35b03d3f7308b566dab4ea74882b44b9bc4fbcf638
|
|
BLAKE2b-256 checksum How to use checksums |
13ac93ca88197bf67b8ebe44bd20df59eb340ce73819eac0a8e60a37adfa4956
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Linux/6.17.0-8-generic
|
Security for IPVAR 1.0.0
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.