bpvars: Forecasting with Bayesian Panel Vector Autoregressions
Provides Bayesian estimation and forecasting of dynamic panel data using
Bayesian Panel Vector Autoregressions with hierarchical prior distributions
following the specification by Sanchez-Martinez & Woźniak (2026) <doi:10.48550/arXiv.2606.14143>.
The models include country-specific Vector Autoregressions (VARs) that share a global prior
distribution that extend the model by Jarociński (2010) <doi:10.1002/jae.1082>.
Under this prior expected value, each country's system follows
a global VAR with country-invariant parameters. Further flexibility is
provided by the hierarchical prior structure that retains the Minnesota prior
interpretation for the global VAR and features estimated prior covariance
matrices, shrinkage, and persistence levels. Bayesian forecasting is developed
for models including exogenous variables, allowing conditional forecasts given
the future trajectories of some variables and restricted forecasts assuring
that rates are forecasted to stay positive and less than 100. The package
implements the model specification, estimation, and forecasting routines,
facilitating coherent workflows and reproducibility. It also includes automated
pseudo-out-of-sample forecasting and computation of forecasting performance
measures. Beautiful plots,
informative summary functions, and extensive documentation complement all
this. Extraordinary computational speed is achieved thanks to employing
frontier econometric and numerical techniques and algorithms written in 'C++'.
The 'bpvars' package is aligned regarding objects, workflows, and code
structure with the 'R' packages 'bsvars' by
Woźniak (2024) <doi:10.32614/CRAN.package.bsvars>, 'bsvarSIGNs' by
Wang & Woźniak (2025) <doi:10.32614/CRAN.package.bsvarSIGNs>,
and 'bvars' by Liu, Ramirez Hassan, & Woźniak (2026)
<doi:10.32614/CRAN.package.bvars> and they
constitute an integrated toolset. Copyright: 2025 International Labour
Organization. The International Labour Organization should not be held
responsible for any issues arising from the use of the 'bpvars' package or
from the results obtained with it.
| Version: |
2.0 |
| Depends: |
R (≥ 4.1.0), bsvars (≥ 3.2) |
| Imports: |
R6, Rcpp (≥ 1.0.12), RcppProgress, RcppTN, generics, TruncatedNormal |
| LinkingTo: |
bsvars, Rcpp, RcppArmadillo, RcppProgress, RcppTN |
| Suggests: |
knitr, tinytest |
| Published: |
2026-06-16 |
| DOI: |
10.32614/CRAN.package.bpvars |
| Author: |
Tomasz Woźniak
[aut, cre],
Miguel Sanchez-Martinez [ctb],
International Labour Organization [cph] (The International Labour
Organization should not be held responsible for any issues arising
from the use of the 'bpvars' package or from the results obtained
with it.) |
| Maintainer: |
Tomasz Woźniak <wozniak.tom at pm.me> |
| BugReports: |
https://github.com/bsvars/bpvars/issues |
| License: |
GPL (≥ 3) |
| URL: |
https://bsvars.org/bpvars/ |
| NeedsCompilation: |
yes |
| Citation: |
bpvars citation info |
| Materials: |
README, NEWS |
| In views: |
TimeSeries |
| CRAN checks: |
bpvars results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=bpvars
to link to this page.