# DESCRIPTION

This package computes the IRF for an univariate ARMA model. If the
model is stationary, then this coincides with the Wold representation.

The package contains 2 public functions: both are intended to operate
on a bundle that is produced after successful completion of the
"arima" estimation command.  However, the function will work even on a
bundle constructed "by hand", as long as it contains the following
items (and that they are correctly sized):

- ainfo
- parnames
- coeff
- vcv
- depvar

The user may choose to attach this package to the ARIMA output window
in the GUI. In this case, the wrplot function, for plotting the IRF,
will be available under Graphs>IRF

# AVAILABLE FUNCTIONS

## woldrep(model, horizon, do_se)

Arguments:

- model: bundle, required
- horizon: positive scalar
- do_se: Boolean, optional (default=0)

Return type: matrix

Computes the IRF for the model stored in the bundle "model", up to the
order "horizon" and returns it as a column vector. The default value
of the horizon is 24. If the Boolean switch "do_se" is non-zero, the
return matrix will be a 2-column matrix with the estimated standard
errors in the second column (computed via the delta method).

## wrplot(const bundle model, int horizon, string dest[null])

Arguments:

- model: bundle, required
- horizon: positive scalar
- dest: string (default=null)

Return type: none

Plots the IRF for the model stored in the bundle "model", up to the
order "horizon", together with a 95% confidence band. The default
value of the horizon is 24. By default, the plot is produced on
screen, but if a valid filename is given as the third, optional,
parameter, the plot will be saved to that file. The supported formats
are all that are handled by the "gnuplot" command, so for example,
"foo.png", "bar.eps" or "baz.pdf" will all work. Note that using a
".plt" extension implies saving the plot as a gnuplot script, that can
be modified if necessary.

# CHANGELOG:

1.0 -> 1.1: robustify plot creation with respect to possible spaces in
temporary filenames. No other changes. 

1.1 -> 1.2: use modern syntax for band plots. Switch to markdown for
help file.
