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
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.
Metadata
Release files for favar 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| favar-0.1.3.tar.gz | 20.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| favar-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.8 kB
Release files / favar-0.1.3.tar.gz
| Download URL | favar-0.1.3.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eee69e886b69b9d74df1d673f5520445d975421abd710a0aea88bba8dcf19652
|
|
BLAKE2b-256 checksum How to use checksums |
f3c0f918eb97adb1cb90415c7713be121d0bd6d4686554524d947d381784178a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / favar-0.1.3-py3-none-any.whl
| Download URL | favar-0.1.3-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cad9c8f9df1b30b234ccb102c2cf6e29079a87f95a8c47094bab384ee54fd8fb
|
|
BLAKE2b-256 checksum How to use checksums |
ea50ebe53d5e0db509b1d60600804535449c5a09949ef943cb6bc3169f922550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|