Skip to main content

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?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipvar-1.0.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipvar-1.0.0-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

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

Hashes for ipvar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7fb259fee2c6aabcbe6e13ddbf366bfc483ae7851a08159c17b5aa8ddf8a069c
MD5 214cb7e072e56b0ec2530af581afa3c3
BLAKE2b-256 4175b6cb82ed27f3f22e33fff16c29bb7e2906f4cf6d4404378bbad55df97005

See more details on using hashes here.

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

Hashes for ipvar-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52d62497b6e7aae47cc23d35b03d3f7308b566dab4ea74882b44b9bc4fbcf638
MD5 6685fad98c67984c84fedea05e9d7ce7
BLAKE2b-256 13ac93ca88197bf67b8ebe44bd20df59eb340ce73819eac0a8e60a37adfa4956

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page