Learn R Programming

⚠️There's a newer version (0.9-2) of this package.Take me there.

MSBVAR (version 0.3.0)

Markov-Switching Bayesian Vector Autoregression Models

Description

Provides methods for estimating frequentist and Bayesian Vector Autoregression (VAR) models. Functions for reduced form and structural VAR models are also available. Includes methods for the generating posterior inferences for VAR forecasts, impulse responses (using likelihood-based error bands), and forecast error decompositions. Also includes utility functions for plotting forecasts and impulse responses, and generating draws from Wishart and singular multivariate normal densities. Future versions will include some models with Markov switching.

Copy Link

Version

Install

install.packages('MSBVAR')

Monthly Downloads

19

Version

0.3.0

License

GPL version 2 or newer

Maintainer

Patrick Brandt

Last Published

February 15th, 2017

Functions in MSBVAR (0.3.0)

mae

Mean absolute error of VAR forecasts
decay.spec

Lag decay specification check
A02mcmc

Converts A0 objects to coda MCMC objects
rmse

Root mean squared error of a Monte Carlo / MCMC sample of forecasts
forc.ecdf

Empirical CDF computations for posterior forecast samples
null.space

Find the null space of a matrix
irf

Impulse Response Function (IRF) Computation for a VAR
plot.irf

Plots impulse responses
mountains

Mountain plots for summarizing forecast densities
BCFdata

Subset of Data from Brandt, Colaresi, and Freeman (2007)
posterior.fit

Estimates the marginal likelihood and posterior probability for VAR, BVAR, and BSVAR models
plot.forecast

Plots competing sets of VAR forecasts or a single set of VAR forecasts
reduced.form.var

Estimation of a reduced form VAR model
IsraelPalestineConflict

Weekly Goldstein Scaled Israeli-Palestinian Conflict Data, 1979-2003
hc.forecast

Forecast density estimation of hard condition forecasts for VAR models via MCMC
gibbs.A0

Gibbs sampler for posterior of Bayesian structural vector autoregression models
print.dfev

Printing DFEV tables
normalize.svar

Likelihood normalization of SVAR models
rwishart

Random deviates from a Wishart distribution
plot.mc.irf

Plotting posteriors of Monte Carlo simulated impulse responses
plot.gibbs.A0

Plot a parameter density summary for B-SVAR A(0) objects
dfev

Decompositions of Forecast Error Variance (DFEV) for VAR/BVAR/BSVAR models
print.posterior.fit

Print method for posterior fit measures
summary

Summary functions for VAR / BVAR / B-SVAR model objects
restmtx

Utility function for generating the restriction matrix for hard condition forecasting
cf.forecasts

Compare VAR forecasts to each other or real data
granger.test

Bivariate Granger causality testing
var.lag.specification

Automated VAR lag specification testing
uc.forecast

Forecast density estimation unconditional forecasts for VAR/BVAR/BSVAR models via MCMC
szbvar

Reduced form Sims-Zha Bayesian VAR model estimation
mc.irf

Monte Carlo Integration / Simulation of Impulse Response Functions
SZ.prior.evaluation

Sims-Zha Bayesian VAR Prior Specification Search
rmultnorm

Multivariate Normal Random Number Generator
szbsvar

Structural Sims-Zha Bayesian VAR model estimation
plot.forc.ecdf

Plots VAR forecasts and their empirical error bands
forecast

Generate forecasts for fitted VAR objects
mcmc.szbsvar

Gibbs sampler for coefficients of a B-SVAR model