Hi Andreas

Am 14.11.19 um 18:45 schrieb anzervas:

Hi all,

I am attaching a small script showing unexpected (at least to me) behavior of the forecast command. The script works in Gretl 2019a (in Ubuntu 19:04) but not in 2019c (in Win 10).

Try this:

<hansl>
set verbose off
nulldata 200
setobs 1 1 --special-time-series

x=normal()

smpl 1 199
u = 0.5*normal()

smpl ; -10         # preserve last 10 days
series y
y[1] = 0
y = 0.3 + 0.8*x + 0.5*y(-1) + u

# Train on sample T=1..190
ols y 0 x y(-1)

fcast 190 200 yf1             # forecast T=190..200
fcast yf2 --out-of-sample
fcast yf3 --static --out-of-sample    # only single period T=190

smpl full
print yf1 yf2 yf3 --byobs
</hansl>

Artur
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/

Reply via email to