Skip to main content

Factor-Augmented Vector Autoregression (FAVAR) for empirical macroeconomic research

Project description

Factor-Augmented Vector Autoregression (FAVAR)

favar is a Python package for estimating Factor-Augmented Vector Autoregression (FAVAR) models in empirical macroeconomic research.

It implements a two-step workflow inspired by Bernanke, Boivin, and Eliasz (2005): extract latent factors from a large information panel, estimate an augmented VAR, and compute forecasts and impulse-response functions.

Installation

pip install favar

Features

  • Principal-component factor extraction from large macroeconomic panels.
  • Slow-moving variable adjustment for monetary policy applications.
  • Lag-order selection with AIC, BIC, FPE, and HQIC.
  • FAVAR summary output with equation tables and residual correlations.
  • Forecasts for observed variables with confidence intervals.
  • Orthogonalized impulse-response functions.
  • Panel-projected impulse responses for selected variables in the information panel.
  • Residual autocorrelation diagnostics.

Quick Example

from favar import FAVAR

model = FAVAR(
    X=X,
    Y=Y,
    policy_var="policy_rate",
    k_factors=3,
    slow_columns=slow_columns,
)

results = model.fit(lags=4)

print(results.summary())

forecast = results.forecast(steps=12, confidence_level=0.95)
irf = results.impulse_response(periods=48, impulse_size=0.25)
panel_irf = results.panel_impulse_response(
    periods=48,
    columns=["industrial_production", "inflation"],
    impulse_size=0.25,
)

Documentation

The full documentation, mathematical details, synthetic walkthrough notebook, examples, and release notes are available in the GitHub repository:

https://github.com/Jonas-Santos-Siqueira/FAVAR

Citation

If you use favar in academic work, please cite:

Siqueira, J. S. (2026). Factor-Augmented Vector Autoregression (FAVAR)
[Python package]. Zenodo. https://doi.org/10.5281/zenodo.21017290

ORCID: 0009-0009-8918-8946

DOI: 10.5281/zenodo.21017290

BibTeX:

@software{siqueira_favar_2026,
  author = {Siqueira, J. S.},
  title = {Factor-Augmented Vector Autoregression (FAVAR)},
  year = {2026},
  publisher = {Zenodo},
  doi = {10.5281/zenodo.21017290},
  url = {https://doi.org/10.5281/zenodo.21017290},
  orcid = {0009-0009-8918-8946}
}

Reference

Bernanke, B. S., Boivin, J., & Eliasz, P. (2005). Measuring the Effects of Monetary Policy: A Factor-Augmented Vector Autoregressive (FAVAR) Approach. Quarterly Journal of Economics.

License

MIT.

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

favar-0.1.2.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

favar-0.1.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file favar-0.1.2.tar.gz.

File metadata

  • Download URL: favar-0.1.2.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for favar-0.1.2.tar.gz
Algorithm Hash digest
SHA256 20e24b4bdd0301b6cdecf4607cc97dc1510201df56239b27c509e302862fdea6
MD5 d752cb3bae5423614461b312d1e422d8
BLAKE2b-256 2d46df4bd9230a07d0751ead0625ca85ddfefbf135a56d3fa665c63282c30d61

See more details on using hashes here.

File details

Details for the file favar-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: favar-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for favar-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aea40e64c6a443d7bca6b19fa828c51af4e1754a42cfbb89d4a56184895f3ca0
MD5 802b31c9d629423a74c4b22fedd51457
BLAKE2b-256 c70bf4a86fc30666c2da5fd7f010db065361180fb422ec09bde276bcaee1802d

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