On Thu, 3 Sep 2009, Ignacio Diaz-Emparanza wrote:
If you are running a script you can do as in the following example:
<script>
open data3-6.gdt
arima 1 0 0 ; 1 --x-12-arima
addobs 4
fcast Ct
smpl 1995 ;
series Ctpred=Ct
smpl --full
</script>
The series Ctpred will have the forecasts from 1995 to 1999 and
NAs in the dates before.
By the way, we should ask to our dear developers why "addobs" is
not now in the list of commands of gretl (if you write 'help' in
the console, or in the pdf manual) its use is deprecated now?
I have tried also "smpl ; +4" and does not work.
"addobs" is not a real command in its own right. It's an alias
for "dataset addobs" which is the canonical form, and the
"dataset" command is documented OK. Perhaps we should have a list
of commonly used (and not deprecated) aliases in the manual?
As for "smpl ; +4", in what context is this giving an error?
The following works OK here:
<script>
open data3-6
smpl ; 1990
smpl ; +4
</script>
Allin.