The routine may be called by the names g13bdf or nagf_tsa_multi_transf_prelim.
g13bdf calculates estimates of parameters , in the transfer function model
given cross-correlations between the series and lagged values of :
and the ratio of standard deviations , as supplied by g13bcf.
It is assumed that the series used to calculate the cross-correlations is a sample from a time series with true autocorrelations of zero. Otherwise the cross-correlations between the series and , as defined in the description of g13baf, should be used in place of those between and .
The estimates are obtained by solving for the equations
where the ‘’ is used for and ‘’ for , .
Any value of arising in these equations for is taken as zero. The parameters are checked as to whether they satisfy the stability criterion.
Box G E P and Jenkins G M (1976) Time Series Analysis: Forecasting and Control (Revised Edition) Holden–Day
1: – Real (Kind=nag_wp)Input
On entry: the cross-correlation between the two series at lag , .
2: – Real (Kind=nag_wp) arrayInput
On entry: the cross-correlations between the two series at lags to ,
, for .
, for .
3: – IntegerInput
On entry: , the number of lagged cross-correlations in the array r.
4: – Integer arrayInput
On entry: the transfer function model orders in the standard form (i.e., delay time, number of moving-average MA-like followed by number of autoregressive AR-like parameters).
, for .
5: – Real (Kind=nag_wp)Input
On entry: the ratio of the standard deviation of the series to that of the series, .
6: – IntegerInput
On entry: the exact number of parameters in the transfer function model.
7: – Real (Kind=nag_wp) arrayOutput
8: – IntegerInput
These arguments are no longer accessed by g13bdf. Workspace is provided internally by dynamic allocation instead.
9: – Real (Kind=nag_wp) arrayOutput
On exit: the preliminary estimates of the parameters of the transfer function model in the order of MA-like parameters followed by the AR-like parameters. If the estimation of either type of parameter fails then these arguments are set to .
10: – Integer arrayOutput
On exit: indicators of the success of the estimation of MA-like and AR-like parameters respectively. A value indicates that there are no parameters of that type to be estimated. A value of or indicates that there are parameters of that type in the model and the estimation of that type has been successful or unsuccessful respectively. Note that there is always at least one MA-like parameter in the model.
11: – IntegerInput/Output
On entry: ifail must be set to , or to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of means that an error message is printed while a value of means that it is not.
If halting is not appropriate, the value or is recommended. If message printing is undesirable, then the value is recommended. Otherwise, the value is recommended. When the value or is used it is essential to test the value of ifail on exit.
On exit: unless the routine detects an error or a warning has been flagged (see Section 6).
6Error Indicators and Warnings
If on entry or , explanatory error messages are output on the current error message unit (as defined by x04aaf).
Errors or warnings detected by the routine:
On entry, and .
On entry, and .
On entry, , , and .
On entry, , and .
On entry, .
On entry, .
An unexpected error has been triggered by this routine. Please
See Section 7 in the Introduction to the NAG Library FL Interface for further information.
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library FL Interface for further information.
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.
Equations used in the computations may become unstable, in which case results are reset to zero with array isf values set accordingly.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
g13bdf is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
g13bdf makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the Users' Note for your implementation for any additional implementation-specific information.
If ,a local workspace array of fixed length is allocated internally by g13bdf. The total size of this array amounts to integer elements and real elements.
The time taken by g13bdf is roughly proportional to .
This example reads the cross-correlations between two series at lags to . It then reads a transfer function model and calculates and prints the preliminary estimates of the parameters of the model.