Am 18.05.2015 um 19:25 schrieb Paulo Grahl:
Hello,
I have the following piece of code in my script:
loop t=(jsample+2)..tend
loop foreach i ylist
$i[t]=$ihat[t]
endloop
endloop
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] ??
Thanks!
Paulo
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?
hth,
sven