Package: bvartools 1.0.0
bvartools: Bayesian Inference of Vector Autoregressive and Error Correction Models
Assists in the set-up of algorithms for Bayesian inference of vector autoregressive (VAR) and error correction (VEC) models. Functions for posterior simulation, forecasting, impulse response analysis and forecast error variance decomposition are largely based on the introductory texts of Chan, Koop, Poirier and Tobias (2019, ISBN: 9781108437493), Koop and Korobilis (2010) <doi:10.1561/0800000013> and Luetkepohl (2006, ISBN: 9783540262398).
Authors:
bvartools_1.0.0.tar.gz
bvartools_1.0.0.zip(r-4.7-x86_64)bvartools_1.0.0.zip(r-4.7-arm64)bvartools_1.0.0.zip(r-4.6-x86_64)bvartools_1.0.0.zip(r-4.6-arm64)bvartools_1.0.0.zip(r-4.5-x86_64)
bvartools_1.0.0.tgz(r-4.6-x86_64)bvartools_1.0.0.tgz(r-4.6-arm64)bvartools_1.0.0.tgz(r-4.5-x86_64)bvartools_1.0.0.tgz(r-4.5-arm64)
bvartools_1.0.0.tar.gz(r-4.7-arm64)bvartools_1.0.0.tar.gz(r-4.7-x86_64)bvartools_1.0.0.tar.gz(r-4.6-arm64)bvartools_1.0.0.tar.gz(r-4.6-x86_64)
bvartools_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
bvartools/json (API)
| # Install 'bvartools' in R: |
| install.packages('bvartools', repos = c('https://franzmohr.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/franzmohr/bvartools/issues
- at_macrodata - Austrian sub-model of a global VAR
- e1 - West German economic time series data
- e6 - German interest and inflation rate data
- uk_macrodata - UK interest and inflation rate data
- us_macrodata - US macroeconomic data
bayesianbayesian-inferencebayesian-varbvarbvecmgibbs-samplingmcmcvector-autoregressionvector-error-correction-modelopenblascpp
Last updated from:5aa5ba7e7e. Checks:15 OK. Indexed: yes.
The latest version of this package failed to build. Look at thebuild logs for more information.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 676 | ||
| linux-devel-x86_64 | OK | 584 | ||
| source / vignettes | OK | 865 | ||
| linux-release-arm64 | OK | 691 | ||
| linux-release-x86_64 | OK | 815 | ||
| macos-release-arm64 | OK | 691 | ||
| macos-release-x86_64 | OK | 1055 | ||
| macos-oldrel-arm64 | OK | 544 | ||
| macos-oldrel-x86_64 | OK | 1121 | ||
| windows-devel-arm64 | OK | 1042 | ||
| windows-devel-x86_64 | OK | 949 | ||
| windows-release-arm64 | OK | 1044 | ||
| windows-release-x86_64 | OK | 1258 | ||
| windows-oldrel-x86_64 | OK | 1124 | ||
| wasm-release | OK | 507 |
Exports:add_dummy_variablesadd_forecast_errorsadd_forecast_inputadd_initial_valuesadd_posterior_coefficientsadd_posterior_forecastsadd_posterior_loglikadd_predictive_loglikadd_prior_optionsadd_priorsadd_seedadd_sign_restrictionsadd_sign_zero_restrictionsaggregate_forecastsaggregation_weightsalign_model_obsarias_rubio_ramirez_waggoner_2018bayests_filesbayests_posteriorbvarbvecchain_diagnosticscheck_discount_specificationchoose_best_modelcoint_kls2010_reparameterise_twocoint_prepare_sur_datacointspace_priorcombine_modelscovar_prepare_datacovar_vector_to_matrixcreate_bvarmodelcreate_bvecmodelcreate_external_forecastexpected_model_sizefevdfrom_bayests_treegenerate_artificial_vargenerate_artificial_vecgenerate_lower_block_diagonalget_forecast_errorsget_model_specificationshistorical_decompositioninclusion_priorirfis_discount_modelkalman_durbin_koopman_2002list_models_in_hdf5loglik_normalmap_drawsmap_modelsminnesota_priormodel_filesmultipliersopen_modelopen_modelspersistence_profilesplot_forecast_errors_by_periodplot_predictive_loglikpool_forecastspost_bvspost_coint_klspost_coint_kls_surpost_gamma_measurement_variancepost_gamma_state_variancepost_normalpost_normal_surprepare_forecast_inputread_bayests_treeread_expanding_window_model_from_folderread_model_from_hdf5read_models_from_folderrescale_error_correctionscale_error_correctionselection_criteriaspilloversplit_quantile_gridssvsssvs_priorstochvol_ksc_1998stochvol_ocsn_2007sur_const_to_tvptime_variation_testtransform_variablesuse_expanding_windowvec_to_varwrite_bayests_treewrite_to_hdf5
Dependencies:abindbackportsbitbit64checkmateclicodadistributionalgenericsgluehdf5rlatticelifecyclemagrittrMatrixmatrixStatsnumDerivpillarpkgconfigposteriorR6RcppRcppArmadillorlangtensorAtibbleutf8vctrs
Last update: 2026-09-27
Started: 2026-08-30
Last update: 2026-09-22
Started: 2020-09-17
Last update: 2026-09-22
Started: 2026-09-11
Last update: 2026-09-22
Started: 2026-09-11
Last update: 2026-09-16
Started: 2019-03-24
Last update: 2026-09-16
Started: 2026-09-10
Last update: 2026-09-16
Started: 2019-02-07
Last update: 2026-09-16
Started: 2026-09-11
Last update: 2026-09-16
Started: 2019-02-17
Last update: 2026-09-13
Started: 2026-08-28
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Dummy Variables | add_dummy_variables |
| Dummy Variables | add_dummy_variables.bvarmodel add_dummy_variables.bvecmodel add_dummy_variables.expandingwindow add_dummy_variables.modellist |
| Add Forecast Errors | add_forecast_errors |
| Add Forecast Errors | add_forecast_errors.bvarmodel |
| Add Forecast Errors | add_forecast_errors.bvecmodel |
| Add Forecast Errors | add_forecast_errors.expandingwindow |
| Add Forecast Errors | add_forecast_errors.modellist |
| Add Forecast Input Data | add_forecast_input |
| Add Forecast Input Data | add_forecast_input.bvarmodel |
| Add Forecast Input Data | add_forecast_input.bvecmodel |
| Add Forecast Input Data | add_forecast_input.expandingwindow |
| Add Forecast Input Data | add_forecast_input.modellist |
| Add Initial Values of an MCMC Chain | add_initial_values |
| Add Initial Values of an MCMC Chain | add_initial_values.bvarmodel |
| Add Initial Values of an MCMC Chain | add_initial_values.bvecmodel |
| Add Initial Values of an MCMC Chain | add_initial_values.expandingwindow |
| Add Initial Values of an MCMC Chain | add_initial_values.modellist |
| Posterior Simulation of Model Coefficients | add_posterior_coefficients |
| Posterior Simulation of Model Coefficients | add_posterior_coefficients.bvarmodel |
| Posterior Simulation of Model Coefficients | add_posterior_coefficients.bvecmodel |
| Posterior Simulation of Model Coefficients | add_posterior_coefficients.expandingwindow |
| Posterior Simulation of Model Coefficients | add_posterior_coefficients.modellist |
| Add Forecasts | add_posterior_forecasts |
| Add Forecasts | add_posterior_forecasts.bvarmodel |
| Add Forecasts | add_posterior_forecasts.bvecmodel |
| Add Forecasts | add_posterior_forecasts.expandingwindow |
| Add Forecasts | add_posterior_forecasts.modellist |
| Add Log-Likelihood | add_posterior_loglik |
| Add Log-Likelihood | add_posterior_loglik.bvarmodel |
| Add Log-Likelihood | add_posterior_loglik.bvecmodel |
| Add Log-Likelihood | add_posterior_loglik.expandingwindow |
| Add Log-Likelihood | add_posterior_loglik.modellist |
| Add Predictive Log-Likelihood | add_predictive_loglik add_predictive_loglik.expandingwindow add_predictive_loglik.modellist |
| Add the Log Predictive Density of a Forecast | add_predictive_loglik.bvarmodel |
| Add the Log Predictive Density of a Forecast | add_predictive_loglik.bvecmodel |
| Adaptive Priors, Stationarity and the Steady State | add_prior_options |
| Add Priors to Bayesian Models | add_priors |
| Add Priors to Bayesian Models | add_priors.bvarmodel |
| Add Priors to Bayesian Models | add_priors.bvecmodel |
| Add Priors to Bayesian Models | add_priors.expandingwindow |
| Add Priors to Bayesian Models | add_priors.modellist |
| Seed of the Posterior Simulation | add_seed add_seed.bvarmodel add_seed.bvecmodel add_seed.expandingwindow add_seed.modellist |
| Sign Restrictions | add_sign_restrictions |
| Sign Restrictions | add_sign_restrictions.bvarmodel add_sign_restrictions.expandingwindow add_sign_restrictions.modellist |
| Sign and Zero Restrictions | add_sign_zero_restrictions |
| Sign and Zero Restrictions | add_sign_zero_restrictions.bvarmodel add_sign_zero_restrictions.expandingwindow add_sign_zero_restrictions.modellist |
| Aggregate Forecasts to Annual Figures | aggregate_forecasts |
| Weights of a Temporal Aggregate | aggregation_weights |
| Align Observations Across Models | align_model_obs |
| Align Observations Across Models | align_model_obs.modellist |
| Impulse Responses and Variance Decompositions of a Stored Model | analysis_of_stored_models fevd.bvarfile irf.bvarfile |
| Sign and Zero Restricted Rotations of Posterior Draws | arias_rubio_ramirez_waggoner_2018 |
| Austrian sub-model of a global VAR | at_macrodata |
| Run BayesTS on Stored Models | bayests_files |
| Posterior Simulation with the BayesTS Executable | bayests_posterior |
| Bayesian Vector Autoregression Objects | bvar |
| The Structure of a Model Object | bvartools_model |
| Bayesian Vector Error Correction Objects | bvec |
| Convergence Diagnostics of Several Chains | chain_diagnostics |
| Choose Best Model | choose_best_model |
| Choose Best Model | choose_best_model.selcritlist |
| Cointegration Reparameterisation | coint_kls2010_reparameterise_two |
| Posterior Data Preparation | coint_prepare_sur_data |
| Build the Prior on the Cointegration Space | cointspace_prior |
| Combine Models | combine_models |
| Covariance: Data Preparation | covar_prepare_data |
| Covariance: Vector to Matrix | covar_vector_to_matrix |
| Create a Vector Autoregressive Model | create_bvarmodel |
| Create Vector Error Correction Models | create_bvecmodel |
| Objects for Externally Produced Forecasts | add_forecast_input.externalforecast add_initial_values.externalforecast add_posterior_coefficients.externalforecast add_posterior_forecasts.externalforecast add_posterior_loglik.externalforecast add_priors.externalforecast add_seed.externalforecast create_external_forecast inclusion_prior.externalforecast minnesota_prior.externalforecast print.externalforecast ssvs_prior.externalforecast thin.externalforecast |
| The Discounted Models | check_discount_specification discount_models is_discount_model |
| West German economic time series data | e1 |
| German interest and inflation rate data | e6 |
| Expected Size of a Model | expected_model_size |
| Expected Size of a Model | expected_model_size.bvarmodel expected_model_size.bvecmodel expected_model_size.expandingwindow expected_model_size.modellist |
| Forecast Error Variance Decomposition | fevd |
| Forecast Error Variance Decomposition | fevd.bvarmodel |
| Forecast Error Variance Decomposition | fevd.bvecmodel |
| Estimation Steps on a Folder of Models | add_initial_values.bvarfolder add_posterior_coefficients.bvarfolder add_posterior_loglik.bvarfolder add_priors.bvarfolder add_seed.bvarfolder folder_steps selection_criteria.bvarfolder thin.bvarfolder time_variation_test.bvarfolder |
| Turn the Tree of a Model File into a Model | from_bayests_tree from_bayests_tree.default |
| Generate Artificial VAR Data | generate_artificial_var |
| Generate Artificial VEC Data | generate_artificial_vec |
| Posterior Data Preparation | generate_lower_block_diagonal |
| Get Forecast Errors | get_forecast_errors |
| Get Model Specifications | get_model_specifications |
| Historical Decomposition | historical_decomposition |
| Historical Decomposition of a Vector Autoregressive Model | historical_decomposition.bvarmodel |
| Prior Inclusion Probabilities | inclusion_prior |
| Prior Inclusion Probabilities | inclusion_prior.bvarmodel |
| Prior Inclusion Probabilities | inclusion_prior.bvecmodel |
| Impulse Response Function | irf |
| Impulse Response Function | irf.bvarmodel |
| Impulse Response Function | irf.bvecmodel |
| Durbin and Koopman Simulation Smoother | kalman_durbin_koopman_2002 |
| Models in an HDF5 File | list_models_in_hdf5 |
| Log-Likelihood of a Multivariate Normal Distribution | loglik_normal |
| Apply a Function to the Draws of a Stored Model | map_draws |
| Apply a Function to the Models of a Folder | map_models |
| Minnesota Prior | minnesota_prior |
| Minnesota Prior | minnesota_prior.bvarmodel |
| Minnesota Prior | minnesota_prior.bvecmodel |
| Minnesota Prior | minnesota_prior.modellist |
| Dynamic Multipliers | multipliers |
| Dynamic Multipliers of a VAR Model with Exogenous Variables | multipliers.bvarmodel |
| Dynamic Multipliers of a VEC Model with Exogenous Variables | multipliers.bvecmodel |
| Open a Model Stored in an HDF5 File | open_model print.bvarfile |
| Open a Folder of Stored Models | model_files open_models print.bvarfolder |
| Persistence Profiles | persistence_profiles |
| Persistence Profiles of a VEC Model | persistence_profiles.bvarmodel persistence_profiles.bvecmodel persistence_profiles.expandingwindow persistence_profiles.modellist |
| Plotting Forecast Errors per Period | plot_forecast_errors_by_period |
| Plotting the Log Predictive Likelihood per Period | plot_predictive_loglik |
| Plotting Forecast Error Variance Decompositions of Bayesian Vector Autoregression | plot.bvarfevd |
| Plot a Historical Decomposition | plot.bvarhd |
| Plotting Impulse Responses of Bayesian Vector Autoregression | plot.bvarirf |
| Plotting Draws of a Bayesian VAR Model | plot.bvarmodel |
| Plotting Forecasts of BVAR Models | plot.bvarprd |
| Plotting Forecasts of a List of Bayesian VAR Models | plot.bvarprdlist |
| Plot a Spillover Index | plot.bvarspillover |
| Plot a Rolling Spillover Index | plot.bvarspilloverts |
| Plotting Draws of a Bayesian VEC Model | plot.bvecmodel |
| Plotting Forecasts of a List of Bayesian VAR Models | plot.expandwindbvarprdlist |
| Plotting Draws of a Bayesian Time Series Models | plot.modellist |
| Plotting Selection Criteria | plot.selcrit plot.selcritlist |
| Pool Forecasts | add_forecast_input.forecastpool add_forecast_input.poolwindow add_initial_values.forecastpool add_initial_values.poolwindow add_posterior_coefficients.forecastpool add_posterior_coefficients.poolwindow add_posterior_forecasts.forecastpool add_posterior_forecasts.poolwindow add_posterior_loglik.forecastpool add_posterior_loglik.poolwindow add_predictive_loglik.forecastpool add_predictive_loglik.poolwindow add_priors.forecastpool add_priors.poolwindow add_seed.forecastpool add_seed.poolwindow pool_forecasts print.forecastpool print.poolwindow thin.forecastpool thin.poolwindow write_to_hdf5.forecastpool write_to_hdf5.poolwindow |
| Bayesian Variable Selection | post_bvs |
| Posterior Draw for Cointegration Models | post_coint_kls |
| Posterior Draw for Cointegration Models | post_coint_kls_sur |
| Posterior Draws of Error Variances | post_gamma_measurement_variance |
| Posterior Draws of Error Variances | post_gamma_state_variance |
| Posterior Draw from a Normal Distribution | post_normal |
| Posterior Draw from a Normal Distribution | post_normal_sur |
| Predict Method for Objects of Class bvar | predict.bvarmodel |
| Predict Method for Objects of Class bvecmodel | predict.bvecmodel |
| Predict Method for Objects of Class expandingwindow | predict.expandingwindow |
| Predict Method for Objects of Class modellist | predict.modellist |
| Prepare Forecast Input | prepare_forecast_input |
| Prepare Forecast Input | prepare_forecast_input.bvarmodel |
| Prepare Forecast Input | prepare_forecast_input.bvecmodel |
| Printing Model Information | print.bvarmodel |
| Print a Spillover Index | print.bvarspillover |
| Printing Model Information | print.bvecmodel |
| Printing Model Information | print.modellist |
| Import Models from HDF5 Files | read_expanding_window_model_from_folder |
| Import Models from HDF5 Files | read_model_from_hdf5 |
| Import Models from a Folder of HDF5 Files | read_models_from_folder |
| Rescale Error Correction | rescale_error_correction |
| Rescale Error Correction | rescale_error_correction.bvecmodel |
| Scale Error Correction | scale_error_correction |
| Scale Error Correction | scale_error_correction.bvecmodel |
| Model Selection Criteria | print.selcrit print.selcritlist selection_criteria |
| Model Selection Criteria | selection_criteria.bvarmodel |
| Model Selection Criteria | selection_criteria.bvecmodel |
| Selection Criteria | selection_criteria.default |
| Model Selection Criteria | selection_criteria.expandingwindow |
| Model Selection Criteria | selection_criteria.externalforecast |
| Model Selection Criteria | selection_criteria.modellist |
| Spillover Index | spillover |
| Spillover Index | spillover.bvarmodel |
| Spillover Index | spillover.bvecmodel |
| Rolling Spillover Index | spillover.expandingwindow |
| Spillover Index | spillover.modellist |
| Single Quantiles of a Quantile Grid | split_quantile_grid |
| Stochastic Search Variable Selection | ssvs |
| Stochastic Search Variable Selection Prior | ssvs_prior |
| Stochastic Search Variable Selection Prior | ssvs_prior.bvarmodel |
| Stochastic Search Variable Selection Prior | ssvs_prior.bvecmodel |
| Stochastic Volatility | stochvol_ksc_1998 |
| Stochastic Volatility | stochvol_ocsn_2007 |
| Summarising Bayesian VAR Coefficients | print.summary.bvarmodel summary.bvarmodel |
| Summarising Bayesian VEC Coefficients | print.summary.bvecmodel summary.bvecmodel |
| Summarising Bayesian Models | summary.expandingwindow |
| Summarising Bayesian Models | summary.modellist |
| SUR Matrix Transformation | sur_const_to_tvp |
| Thinning Posterior Draws | thin.bvarmodel |
| Thinning Posterior Draws | thin.bvecmodel |
| Thinning Posterior Draws | thin.expandingwindow |
| Thinning Posterior Draws | thin.modellist |
| Test for Time Variation | time_variation_test |
| Test for Time Variation in a VAR or VEC Model | time_variation_test.bvarmodel time_variation_test.bvecmodel time_variation_test.expandingwindow time_variation_test.modellist |
| Apply Transformations | transform_variables |
| UK interest and inflation rate data | uk_macrodata |
| US macroeconomic data | us_macrodata |
| Expanding Window Estimation | use_expanding_window |
| Expanding Window Estimation | use_expanding_window.bvarmodel |
| Expanding Window Estimation | use_expanding_window.bvecmodel |
| Expanding Window Estimation | use_expanding_window.modellist |
| Transform a VEC Model to a VAR in Levels | vec_to_var |
| Transform a VEC Model to a VAR in Levels | vec_to_var.bvecmodel |
| Transform VEC Models to VARs in Levels | vec_to_var.expandingwindow |
| Transform a VEC Model to a VAR in Levels | vec_to_var.modellist |
| Time Series Windows | window.bvarmodel |
| Time Series Windows | window.bvecmodel |
| Time Series Windows | window.modellist |
| Write and Read the Tree of a BayesTS Model File | read_bayests_tree write_bayests_tree |
| Export to HDF5 File | write_to_hdf5 |
| Export to HDF5 File | write_to_hdf5.bvarmodel |
| Export to HDF5 File | write_to_hdf5.bvecmodel |
| Export to HDF5 File | write_to_hdf5.expandingwindow |
| Export to HDF5 File | write_to_hdf5.modellist |