Still taken from a video by Mikel Ferro
BEAVARs.jl: Bayesian Econometric Analysis using Vector Autoregressive models
This is a personal package implementing various Bayesian VARs for economic analysis and forecasting.
VAR models with a single frequency:
-
Chan2020minn: BVAR with classical Minnesota prior (homoscedastic fixed variance-covariance matrix) as in Chan, J.C.C. (2020), Large Bayesian Vecotrautoregressions, P. Fuleky (Eds), Macroeconomic Forecasting in the Era of Big Data, 95-125, Springer, Cham, https://doi.org/10.1007/978-3-030-31150-6, see also joshuachan.org and his pdf.
-
Chan2020iniw: BVAR with Minnesota prior and an independent normal inverse Wishart (iniw) prior on the variance-covariance matrix as in Chan, J.C.C. (2020), Large Bayesian Vecotrautoregressions, P. Fuleky (Eds), Macroeconomic Forecasting in the Era of Big Data, 95-125, Springer, Cham, https://doi.org/10.1007/978-3-030-31150-6, see also joshuachan.org and his pdf.
-
Chan2020csv: BVAR with Minnesota prior and common stochastic volatility (csv) as in Chan, J.C.C. (2020), Large Bayesian Vecotrautoregressions, P. Fuleky (Eds), Macroeconomic Forecasting in the Era of Big Data, 95-125, Springer, Cham, https://doi.org/10.1007/978-3-030-31150-6, see also joshuachan.org and his pdf.
-
BGR2010: BVAR with dummy observations as in Banbura, M., Giannone, D., and Reichlin, L. (2010), Large Bayesian vecotr auto regressions, Journal of Applied Econometrics, Vol 25(1), doi.org/10.1002/jae.1137.
Mixed frequency VARs:
- CPZ2023: Mixed-frequency Bayesian VAR as in Chan, J.C.C., Poon, A, Zhu, D. (2023) High-dimensional conditionally Gaussian state space models with missing data, Journal of Econometrics, Volume 236, Issue 1, September 2023, 105468, https://doi.org/10.1016/j.jeconom.2023.05.005. Important: the mixed-frequency representation in the original paper does not rely on prior assumptions. This version uses the prior from Chan2020iniw above.
Each model is implemented in a separate function, callable using the interface beavar(). See the documetnation for details. Note that notation follows the original reference. Consequently variable and parameter names are different across functions (e.g.
Some codes have been translated from Matlab, so there is a lot of room for optimization.
Consider going to the package documentation next.
I would like to thank Guillaume Dalle. He is not associated with this package but went out of his way to help me get my first steps in Github and Julia optimization. Also, many users in the Julia discourse helped me often when I was struggling. This community is great.
-
The name BEAVARs is an obvious play of words with a misspelled version of my favourite animal.
-
It is also a nod to the BEAR Toolbox - Bayesian Estimation, Analysis and Regression, which is a powerful Matlab toolbox for estimating various VAR, BVAR, and Panel VAR models. While this is not an attempt to reach the size and scope of BEAR in the Julia ecosystem, there are some clear similarities in the idea of easy estimation of various models.
-
The name does not conform to the widely accepted convention of naming Julia packages (capital letter followed by all lowercase) but it doesn't break any rules either. It isn't the only package with more than one capita letter, e.g. FFT, CUDA, CSV etc. Yes, it's an acronym, which can always be misleading. CSV may mean for you comma-separated value, but in my world it stands for common stochastic volatility :). And I still have no idea what FFT stands for and never googled it to make a point. Nevertheless, there should be minial confusion, because it's misspelled on purpose - the name Beaver.jl remains open, and if someone wants to use that we can still distinguish the packages BEAVARs.jl and Beavers.jl easily.
Banbura, Marta, Giannone, Domenico and Reichlin, Lucrezia, (2010), Large Bayesian vector auto regressions, Journal of Applied Econometrics, 25, issue 1, p. 71-92. https://doi.org/10.1002/jae.1137.
Chan, J.C.C. (2020), Large Bayesian Vecotrautoregressions, P. Fuleky (Eds), Macroeconomic Forecasting in the Era of Big Data, 95-125, Springer, Cham, https://doi.org/10.1007/978-3-030-31150-6
Chan, J.C.C., Poon, A, Zhu, D. (2023) High-dimensional conditionally Gaussian state space models with missing data, Journal of Econometrics, Volume 236, Issue 1, September 2023, 105468, https://doi.org/10.1016/j.jeconom.2023.05.005