Am 15.11.2019 um 07:56 schrieb ΑΝΔΡΕΑΣ ΖΕΡΒΑΣ:
Many thanks Artur,
However, I was puzzled mostly by the different behavior of different
versions, in a case that seems to me they should behave in the same
manner.
Hi, it would help if you could describe what you expected and why do you
think it should work. Note the doc for fcast: "If an out-of-sample
forecast is requested but no relevant observations are available, an
error is flagged." That's what's happening. Perhaps older gretl versions
had a bug there. (Certainly the changelog shows a somewhat related crash
bug fixed in 2019c.)
In any case, I have another question: if one modifies the model
so that there is no dynamic behavior, the --static option still
gives
one period forecast, though it is not strictly necessary. It is
documented behavior, but is what one would expect? Your modified example
is attached (test_fcast2.inp).
At least the comments in that script are partly wrong. "smpl 1 199" and
then "smpl ; -10" does not imply "Train on sample T=1..190". (Easy to
see also in the ols output.)
Concerning the original example, in test_fcast3.inp (attached), I
have
increased the out of sample forecast period to 10 periods. In 2019a
version the script works, in 2019c not (now on Win 10 both, though I
think the OS is irrelevant).
It is indeed interesting if the script works in earlier versions. But so
far the current behavior seems fine to me, so I would tend to view it as
some kind of bug in the older version. If you think the old behavior is
correct, please provide more details about the old results. (Since we
want to avoid installing old versions for testing if not absolutely
necessary.)
thanks
sven