Learn R Programming

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

MSBVAR (version 0.4.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. Current version includes some limited functionality to build models with Markov switching.

Copy Link

Version

Install

install.packages('MSBVAR')

Monthly Downloads

19

Version

0.4.0

License

GPL (>= 2)

Maintainer

Patrick Brandt

Last Published

July 21st, 2009

Functions in MSBVAR (0.4.0)

mountains

Mountain plots for summarizing forecast densities
granger.test

Bivariate Granger causality testing
print.dfev

Printing DFEV tables
decay.spec

Lag decay specification check
normalize.svar

Likelihood normalization of SVAR models
summary

Summary functions for VAR / BVAR / B-SVAR model objects
cf.forecasts

Compare VAR forecasts to each other or real data
BHLK.filter

Baum-Hamilton-Lindgren-Kim state-space filter
reduced.form.var

Estimation of a reduced form VAR model
A02mcmc

Converts A0 objects to coda MCMC objects
rdirichlet

Random draws from and density for Dirichlet distribution
forc.ecdf

Empirical CDF computations for posterior forecast samples
dfev

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

Estimates the marginal likelihood and posterior probability for VAR, BVAR, and BSVAR models
IsraelPalestineConflict

Weekly Goldstein Scaled Israeli-Palestinian Conflict Data, 1979-2003
list.print

Prints a list object for the VAR and BVAR models in MSBVAR
mcmc.szbsvar

Gibbs sampler for coefficients of a B-SVAR model
plot.irf

Plots impulse responses
restmtx

Utility function for generating the restriction matrix for hard condition forecasting
gibbs.msbsvar

Gibbs-Metropolis-Hastings sampler for posterior of a Markov-switching Bayesian structural vector autoregression model
irf

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

Plots competing sets of VAR forecasts or a single set of VAR forecasts
hc.forecast

Forecast density estimation of hard condition forecasts for VAR models via MCMC
rwishart

Random deviates from a Wishart distribution
mae

Mean absolute error of VAR forecasts
null.space

Find the null space of a matrix
gibbs.msbvar

Gibbs sampler for a Markov-switching Bayesian reduced form vector autoregression model
plot.mc.irf

Plotting posteriors of Monte Carlo simulated impulse responses
rmse

Root mean squared error of a Monte Carlo / MCMC sample of forecasts
irf.msbsvar

Monte Carlo Integration / Simulation of Impulse Response Functions for an MSBSVAR model.
mean.SS

Summary measures and plots for MS-B(S)VAR state-spaces
BCFdata

Subset of Data from Brandt, Colaresi, and Freeman (2007)
forecast

Generate forecasts for fitted VAR objects
rmultnorm

Multivariate Normal Random Number Generator
msbvar

Markov-switching Bayesian reduced form vector autoregression model setup and posterior mode estimation
gibbs.A0

Gibbs sampler for posterior of Bayesian structural vector autoregression models
mc.irf

Monte Carlo Integration / Simulation of Impulse Response Functions
msbsvar

Markov-Switching Sims-Zha Bayesian VAR Model estimation
szbvar

Reduced form Sims-Zha Bayesian VAR model estimation
SZ.prior.evaluation

Sims-Zha Bayesian VAR Prior Specification Search
szbsvar

Structural Sims-Zha Bayesian VAR model estimation
uc.forecast

Forecast density estimation unconditional forecasts for VAR/BVAR/BSVAR models via MCMC
var.lag.specification

Automated VAR lag specification testing
print.posterior.fit

Print method for posterior fit measures
plot.forc.ecdf

Plots VAR forecasts and their empirical error bands
plot.gibbs.A0

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