Package: bpvars 1.0.0.9000

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. 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> and 'bsvarSIGNs' by Wang & Woźniak (2025) <doi:10.32614/CRAN.package.bsvarSIGNs>, 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.
Authors:
bpvars_1.0.0.9000.tar.gz
bpvars_1.0.0.9000.zip(r-4.7)bpvars_1.0.0.9000.zip(r-4.6)bpvars_1.0.0.9000.zip(r-4.5)
bpvars_1.0.0.9000.tgz(r-4.6-x86_64)bpvars_1.0.0.9000.tgz(r-4.6-arm64)bpvars_1.0.0.9000.tgz(r-4.5-x86_64)bpvars_1.0.0.9000.tgz(r-4.5-arm64)
bpvars_1.0.0.9000.tar.gz(r-4.7-arm64)bpvars_1.0.0.9000.tar.gz(r-4.7-x86_64)bpvars_1.0.0.9000.tar.gz(r-4.6-arm64)bpvars_1.0.0.9000.tar.gz(r-4.6-x86_64)
bpvars_1.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
bpvars/json (API)
NEWS
| # Install 'bpvars' in R: |
| install.packages('bpvars', repos = c('https://bsvars.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/bsvars/bpvars/issues
Pkgdown/docs site:https://bsvars.org
- country_grouping_incomegroup - A vector with country grouping by income group for 189 countries
- country_grouping_region - A vector with country grouping by region for 189 countries
- country_grouping_subregionbroad - A vector with country grouping by subregion for 189 countries
- country_grouping_subregiondetailed - A vector with country grouping by detailed subregion for 189 countries
- ilo_conditional_forecasts - Data containing future observations for 189 countries from 2025 to 2027 to be used for conditional forecasts given the future values of gdp.
- ilo_dynamic_panel - A 4-variable annual system for forecasting labour market outcomes for 189 countries from 1991 to 2024
- ilo_dynamic_panel_missing - A 4-variable annual system for forecasting labour market outcomes for 189 countries to 2024 containing only actual observations
- ilo_exogenous_forecasts - Data containing future observations for 189 countries from 2025 to 2027 to be used to forecast with models with 'ilo_exogenous_variables'
- ilo_exogenous_variables - A 3-variable annual system for of dummy observations for 2008, 2020, and 2021 to be used in the estimation of the Panel VAR model for 189 countries from 1991 to 2024
- ilo_exogenous_variables_missing - A 3-variable annual system for of dummy observations for 2008, 2020, and 2021 to be used in the estimation of the Panel VAR model for 189 countries to 2024 containing observations for matching periods from 'ilo_dynamic_panel_missing'
bayesianbsvarsbvarpanelsdynamic-panel-dataforecastinghierarchical-modelsvarsopenblascppopenmp
Last updated from:63e5807116. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 219 | ||
| linux-devel-x86_64 | OK | 210 | ||
| source / vignettes | OK | 321 | ||
| linux-release-arm64 | OK | 254 | ||
| linux-release-x86_64 | OK | 206 | ||
| macos-release-arm64 | OK | 200 | ||
| macos-release-x86_64 | OK | 431 | ||
| macos-oldrel-arm64 | OK | 245 | ||
| macos-oldrel-x86_64 | OK | 450 | ||
| windows-devel | OK | 282 | ||
| windows-release | OK | 241 | ||
| windows-oldrel | OK | 221 | ||
| wasm-release | OK | 160 |
Exports:compute_forecast_performanceforecastforecast_poos_recursivelyspecify_bvarGroupPANELspecify_bvarGroupPriorPANELspecify_bvarPANELspecify_bvarsspecify_panel_data_matricesspecify_poosf_exercisespecify_posterior_bvarGroupPANELspecify_posterior_bvarGroupPriorPANELspecify_posterior_bvarPANELspecify_posterior_bvarsspecify_prior_bvarPANELspecify_prior_bvarsspecify_starting_values_bvarGroupPANELspecify_starting_values_bvarGroupPriorPANELspecify_starting_values_bvarPANELspecify_starting_values_bvars
Dependencies:alabamabsvarscodagenericsGIGrvglatticenleqslvnumDerivqrngR6RcppRcppArmadilloRcppProgressRcppTNspacefillrstochvolTruncatedNormal
