Factor-Augmented Vector Autoregression (FAVAR) for empirical macroeconomic research
Project description
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
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
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 favar-0.1.1.tar.gz.
File metadata
- Download URL: favar-0.1.1.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7a5e359913827667310f5a352de11e931d9452e4a17d53df97a1f9e71b70af6
|
|
| MD5 |
fdc8105620391496ff873a9a67b61213
|
|
| BLAKE2b-256 |
cd8f45e78c60215a29245cfa260d21df913eda94456772c8805d22b35d796603
|
File details
Details for the file favar-0.1.1-py3-none-any.whl.
File metadata
- Download URL: favar-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
240bb24f37acd18d9861f82dd7caaf9b8ff3e85faa5a85d283dd51cd84a3e60e
|
|
| MD5 |
3707d62f01cabf0686f07360925ad50c
|
|
| BLAKE2b-256 |
4b329ecad8250f63db49e5f8cc479765b94ed767bb97f4c4beec84f08df7d675
|