[Gretl-users] Quick (and urgent) help with script...has it changed?
svetosch at gmx.net
Mon May 18 15:10:23 EDT 2015
Am 18.05.2015 um 19:25 schrieb Paulo Grahl:
> I have the following piece of code in my script:
> loop t=(jsample+2)..tend
> loop foreach i ylist
> where jsample and tend are scalars and ylist is a list with a few time
> series, say "hires" and "quits".
> I had generated hireshat and quitshat with the forecasts for the end of
> the sample. The idea of the loop is to included the forecasts into the
> original time series "hires" and "quits".
> It all worked fine when I last run the code (about 3 months ago). Now, I
> get an error message saying that
> $i[t] = $ihat[t] is a syntax error.
> Has anything changed in how the script understands $i[t] ??
Good question, and due to under-the-hood changes it could in principle
also be a new bug. As a workaround can you perhaps try to create
temporary series inside the loop, as "series stemp1 = $i" and then work
with stemp1 and so forth?
More information about the Gretl-users