Interacted Panel VAR Toolbox
Project description
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ipvar-1.0.0.tar.gz.
File metadata
- Download URL: ipvar-1.0.0.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.0-8-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fb259fee2c6aabcbe6e13ddbf366bfc483ae7851a08159c17b5aa8ddf8a069c
|
|
| MD5 |
214cb7e072e56b0ec2530af581afa3c3
|
|
| BLAKE2b-256 |
4175b6cb82ed27f3f22e33fff16c29bb7e2906f4cf6d4404378bbad55df97005
|
File details
Details for the file ipvar-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ipvar-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.0-8-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52d62497b6e7aae47cc23d35b03d3f7308b566dab4ea74882b44b9bc4fbcf638
|
|
| MD5 |
6685fad98c67984c84fedea05e9d7ce7
|
|
| BLAKE2b-256 |
13ac93ca88197bf67b8ebe44bd20df59eb340ce73819eac0a8e60a37adfa4956
|