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/Siqueira-J-S/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.3.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.3-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: favar-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 eee69e886b69b9d74df1d673f5520445d975421abd710a0aea88bba8dcf19652
MD5 bf32d51d4981dc0a0d9d025a86814fe4
BLAKE2b-256 f3c0f918eb97adb1cb90415c7713be121d0bd6d4686554524d947d381784178a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: favar-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cad9c8f9df1b30b234ccb102c2cf6e29079a87f95a8c47094bab384ee54fd8fb
MD5 618432a295a2e7cffa35e5822a4cddc3
BLAKE2b-256 ea50ebe53d5e0db509b1d60600804535449c5a09949ef943cb6bc3169f922550

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