Grocer Function

NAME

statfore - static forecast

CALLING SEQUENCE

[p]=statfore(res,arg1,...,argn)

PARAMETERS

Input

Output

DESCRIPTION

Provides a static forecast from an equation estimated by ols(), hwhite(), olst(), lad(),... It can be used also with results of olsc, but does not take into account the autocorrelation of residuals. If the estimation has been performed with ts, then the function assumes that the variables have been entered between quotes and that their name have therefore been saved in the tlist; in that case, the corresponding data must be present in the environment.

EXAMPLES

1) r = hendryericsson();statfore(r, '1985q1', '1989q3 ')
2) r2=ols(r('y'),r('x'));statfore(r2,[0.02 0.01 0.03 0.015 1])

Example 1 shows the static forecast made on period 1985q1 to 1989q3 with Hendry and Ericsson preferred specification.
Example 2 shows a static forecast made with the same model, but estimated now with the corresponding vectors (r('y') and r('x')), and with exogenous values equal to [0.02 0.01 0.03 0.015 1].

AUTHOR

Eric Dubois 2002