- (optional) subperiod over which the forecast is done if variables are ts
- a (m x k) matrix of exogenous variables if they are not ts
Output
* p = forecast
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.
EXAMPLE
r=hendryericsson();statfore(r,'1985q1','1989q3 ')// Example shows the static forecast made on period 1985q1 to 1989q3 with Hendry and Ericsson preferred specification.r2=ols(r('y'),r('x'));statfore(r2,[0.020.010.030.0151])// Example 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].