BJESTIMATE procedure
Fits an ARIMA model, with forecast and residual checks (G. Tunnicliffe Wilson & S.J. Welham).
Options
Parameters
Description
BJESTIMATE fits an ARIMA model of specified orders to a time series given by the SERIES parameter. If only part of the series is to be used, this should be specified by the parameter LENGTH, using either a scalar N to indicate that the first N values should be used, or a variate of length 2 holding the positions of the first and last units of the subseries to be included. If only a subseries is used in the estimation, forecasts of any later series values are plotted to act as a check on the fitted model. The fit of the model is examined using the procedure BJIDENTIFY on the residual series; this residual series is plotted, together with its sample autocorrelations, partial autocorrelations and periodogram. The residuals from the fitted model can be saved using the RESIDUALS parameter.
The orders of the ARIMA model can be specified by the ORDERS parameter; alternatively, if parameter TSM has been set to the identifier of a TSM structure to save the results, ORDERS can be omitted and the orders will be taken from those of the TSM. Likewise, the PARAMETERS parameter can be set to a variate of initial values for the ESTIMATE directive, used by the procedure to fit the model; if PARAMETERS is unset these will again be taken from the setting of the TSM parameter, if available. Any unset initial values are determined automatically by ESTIMATE.
Printed output is controlled by the option PRINT; by default, a description of the series, monitoring of the estimation process and the fitted model are printed.
Graphical output is controlled by the options GRAPHICS, WINDOWS and PENS. Option GRAPHICS controls whether plots are produced for line-printer output or on the current high-resolution graphics device; by default high-resolution plots are given. Option WINDOWS controls the way in which the high-resolution plots are arranged. First of all there may be a graph of forecasts; this is plotted on a new page (i.e. a cleared screen), using the first window specified. Then procedure BJIDENTIFY is called to produce four different plots of residuals. If WINDOWS is set to a scalar N, the graphs are all produced in window N on separate pages; the FRAME directive can be used to set the attributes of window N before calling the procedure. Alternatively, WINDOWS can be set to a variate of length four; the attributes of the four windows specified are then redefined within the procedure so that four graphs are produced on the same page. By default WINDOWS=1. The PENS option controls which pens are used for the plots; the attributes of these pens are modified appropriately within the procedure. By default pens 1-3 are used, but these can be changed by setting option PENS to a variate of length 3 containing the numbers of the three different pens required.
Options: PRINT, GRAPHICS, WINDOWS, PENS.
Parameters: SERIES, LENGTH, ORDERS, PARAMETERS, TSM, RESIDUALS.
Method
The model is fitted using the default settings of directive ESTIMATE, and forecasts are constructed for increasing leadtimes using the directive FORECAST. BJIDENTIFY is called to display time series statistics for the residual series after fitting the required ARIMA model.
Action with
RESTRICT
Input structures must not be restricted. Restriction of the input SERIES to a contiguous set of units can be achieved using the LENGTH parameter.