Learn R Programming

bvartools (version 0.2.4)

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

570

Version

0.2.4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Franz X. Mohr

Last Published

January 8th, 2024

Functions in bvartools (0.2.4)

add_priors.dfmodel

Add Priors to Dynamic Factor Model
bvartools-package

bvartools: Bayesian Inference of Vector Autoregressive and Error Correction Models
add_priors.bvarmodel

Add Priors for a Vector Autoregressive Models
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.
bem_dfmdata

FRED-QD data
bvarpost

Posterior Simulation for BVAR Models
bvec

Bayesian Vector Error Correction Objects
add_priors.bvecmodel

Add Priors for Vector Error Correction Models
bvar

Bayesian Vector Autoregression Objects
e6

German interest and inflation rate data
dfmpost

Posterior Simulation for Dynamic Factor Models
draw_posterior.bvecmodel

Posterior Simulation for Vector Error Correction Models
draw_posterior.dfmodel

Posterior Simulation
draw_posterior.bvarmodel

Posterior Simulation
bvs

Bayesian Variable Selection
dfm

Bayesian Dynamic Factor Model Objects
bvecpost

Posterior Simulation for BVEC Models
draw_posterior

Posterior Simulation
e1

West German economic time series data
inclusion_prior

Prior Inclusion Probabilities
gen_dfm

Dynamic Factor Model Input
kalman_dk

Durbin and Koopman Simulation Smoother
gen_vec

Vector Error Correction Model Input
gen_var

Vector Autoregressive Model Input
loglik_normal

Calculates the log-likelihood of a multivariate normal distribution.
fevd.bvar

Forecast Error Variance Decomposition
fevd

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

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

Stochastic Search Variable Selection
post_normal_covar_tvp

Posterior Simulation of Error Covariance Coefficients
plot.bvarprd

Plotting Forecasts of BVAR Models
minnesota_prior

Minnesota Prior
post_normal_covar_const

Posterior Simulation of Error Covariance Coefficients
post_coint_kls

Posterior Draw for Cointegration Models
post_normal

Posterior Draw from a Normal Distribution
summary.bvarlist

Summarising Bayesian VAR or VEC Models
post_normal_sur

Posterior Draw from a Normal Distribution
summary.bvec

Summarising Bayesian VEC Coefficients
stoch_vol

Stochastic Volatility
stochvol_ksc1998

Stochastic Volatility
plot.bvarlist

Plotting Posterior Draws of Bayesian VAR or VEC Models
post_coint_kls_sur

Posterior Draw for Cointegration Models
summary.bvar

Summarising Bayesian VAR Coefficients
irf.bvar

Impulse Response Function
us_macrodata

US macroeconomic data
summary.dfm

Summarising Bayesian Dynamic Factor Models
ssvs_prior

Stochastic Search Variable Selection Prior
thin.bvec

Thinning Posterior Draws
thin.bvarlist

Thinning Posterior Draws
stochvol_ocsn2007

Stochastic Volatility
thin.bvar

Thinning Posterior Draws
thin.dfm

Thinning Posterior Draws