plot.forecast {MSBVAR}R Documentation

Plots competing sets of VAR forecasts or a single set of VAR forecasts

Description

Produces a high level plot of two sets of VAR forecasts computed from a Markov Chain Monte Carlo (MCMC) posterior sample. Forecasts are the output of hc.forecast, or uc.forecast.

Usage

plot.forecast(x, y = NULL, varnames = NULL, start = c(0, 1), freq = 1, probs =
     c(0.05, 0.95), compare.level = NULL, ylab = NULL, ...)

Arguments

x First sample of forecasts
y Second sample of forecasts, default = NULL
varnames m x 1 list of variable names, e.g., c("name1","name2",...)
start Start date for the forecast period time series, default = c(0,1)
freq Time series frequency, in format consistent with ts. Default is 1
probs Probability limits for error bands. Default is 90% or c(0.05,0.95)
compare.level m list of "comparison levels" to be drawn as horizontal lines. By default zero is included. This is useful for highlighting specific reference points for the forecasts
ylab list of labels for the y-axes
... other graphics parameters

Details

Plots the mean forecast and the pointwise empirical confidence region for a posterior sample of VAR forecasts. Overlays a second set of forecasts and error bands if requested in fcasts2. This should be prefaced by a call to par(mfrow(...)) or par(mfcol(...)) to set the layout of the plots for each series.

Value

None. Plots forecasts on the current display device.

Note

Author(s)

Patrick T. Brandt

References

See Also

plot.forc.ecdf, and uc.forecast for an example.

Examples



[Package MSBVAR version 0.2.2 Index]