Learn R Programming

bvartools (version 0.3.0)

Bayesian Inference of Vector Autoregressive and Error Correction Models

Description

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) and Luetkepohl (2006, ISBN: 9783540262398).

Copy Link

Version

Install

install.packages('bvartools')

Monthly Downloads

443

Version

0.3.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Franz X. Mohr

Last Published

September 11th, 2026

Functions in bvartools (0.3.0)

dfm

Bayesian Dynamic Factor Model Objects
draw_posterior.bvarmodel

Posterior Simulation
draw_posterior.dfmodel

Posterior Simulation
draw_posterior

Posterior Simulation
draw_posterior.bvecmodel

Posterior Simulation for Vector Error Correction Models
covar_prepare_data

Covariance: Data Preparation
dfmpost

Posterior Simulation for Dynamic Factor Models
bvecpost

Posterior Simulation for BVEC Models
bvs

Bayesian Variable Selection
covar_vector_to_matrix

Covariance: Vector to Matrix
e1

West German economic time series data
fevd

Forecast Error Variance Decomposition A generic function used to calculate forecast error varianc decompositions.
gen_vec

Vector Error Correction Model Input
inclusion_prior

Prior Inclusion Probabilities
fevd.bvar

Forecast Error Variance Decomposition
gen_var

Vector Autoregressive Model Input
kalman_dk

Durbin and Koopman Simulation Smoother
gen_dfm

Dynamic Factor Model Input
loglik_normal

Calculates the log-likelihood of a multivariate normal distribution.
plot.bvarlist

Plotting Posterior Draws of Bayesian VAR or VEC Models
post_gamma_state_variance

Posterior Draws of Error Variances
post_normal

Posterior Draw from a Normal Distribution
minnesota_prior

Minnesota Prior
e6

German interest and inflation rate data
post_coint_kls

Posterior Draw for Cointegration Models
plot.bvarprd

Plotting Forecasts of BVAR Models
ssvs_prior

Stochastic Search Variable Selection Prior
post_gamma_measurement_variance

Posterior Draws of Error Variances
irf.bvar

Impulse Response Function
irf

Impulse Response Function A generic function used to calculate impulse response functions.
stoch_vol

Stochastic Volatility
post_coint_kls_sur

Posterior Draw for Cointegration Models
stochvol_ksc1998

Stochastic Volatility
ssvs

Stochastic Search Variable Selection
post_normal_sur

Posterior Draw from a Normal Distribution
stochvol_ocsn2007

Stochastic Volatility
sur_const_to_tvp

SUR Matrix Transformation
thin.dfm

Thinning Posterior Draws
us_macrodata

US macroeconomic data
thin.bvar

Thinning Posterior Draws
post_normal_covar_const

Posterior Simulation of Error Covariance Coefficients
summary.dfm

Summarising Bayesian Dynamic Factor Models
summary.bvec

Summarising Bayesian VEC Coefficients
summary.bvarlist

Summarising Bayesian VAR or VEC Models
summary.bvar

Summarising Bayesian VAR Coefficients
thin.bvarlist

Thinning Posterior Draws
thin.bvec

Thinning Posterior Draws
post_normal_covar_tvp

Posterior Simulation of Error Covariance Coefficients
bem_dfmdata

FRED-QD data
bvar

Bayesian Vector Autoregression Objects
add_priors.bvarmodel

Add Priors for a Vector Autoregressive Models
add_priors.bvecmodel

Add Priors for Vector Error Correction Models
bvarpost

Posterior Simulation for BVAR Models
add_priors.dfmodel

Add Priors to Dynamic Factor Model
bvec_to_bvar

Transform a VEC Model to a VAR in Levels
add_priors

Add Priors to Bayesian Models A generic function used to generate prior specifications for a list of models. The function invokes particular methods which depend on the class of the first argument.
bvec

Bayesian Vector Error Correction Objects
bvartools-package

bvartools: Bayesian Inference of Vector Autoregressive and Error Correction Models