Learn R Programming

MSBVAR (version 0.9-2)

plot.irf: Plots impulse responses

Description

Plots the m x m matrix of impulse responses produced by irf.

Usage

"plot"(x, varnames = attr(x, "eqnames"), ...)

Arguments

x
Impulse response object produced by irf
varnames
Names of equations and shocks in the format c("name1","name2",...). Default is to use the names of the input variables from the estimation method.
...
other plot arguments

Value

None. Draws a graph in the current device.

Details

Generates a plot in ther current plotting device of the impulse responses in irf. See below for functions that allow one to add error bands and confidence regions to the impulse responses. Impulses or shocks are in the columns and the rows are the responses.

References

Hamilton, James. 1994. Time Series Analysis, Chapter 11. Sims, C.A. 1980. "Macroeconomics and Reality" Econometrica.

See Also

irf to produce impulse responses from a VAR object, mc.irf, and plot.mc.irf for methods that allow frequentist and Bayesian error bands in the impulse responses

Examples

Run this code
data(IsraelPalestineConflict)
rf.var <- reduced.form.var(IsraelPalestineConflict, p=6)
plot(irf(rf.var, nsteps = 12))

Run the code above in your browser using DataLab