Page 1 of 1

Bug in Error Message : vector-series-coefficient

Posted: Fri Aug 03, 2012 12:18 am
by johnvaz
I am getting a strange error when I run some code and wasted many hours trying to work out what is wrong as the error message has nothing to do with what I am doing. I am using EV7.2


If (-di_jp_uk(-1)+(1200*(FDS_JPYGBP_ZM/S_JPYGBP(-1)))>1) then

series rFS_JPYGBP_ZM = (-di_jp_uk+(1200*(D(S_JPYGBP)/S_JPYGBP(-1))))
else

series rFS_JPYGBP_ZM = (di_jp_uk(-1)-(1200*(D(S_JPYGBP)/S_JPYGBP(-1))))
endif

Crashes on the if condition with the error
-1 is not a valid index for vector-series-coefficient S_JPYGBP in "IF (-DI_JP_UK(-1)+(1200*(FDS_JPYGBP_ZM/S_JPYGBP(-1)))>1) THEN ...

I am not using a vector, or a coefficient of any sort , it is an ordinary time series !
I have checked all the series names in the if statement they exist and are fine. when I execute the "series test = 1200*(FDS_JPYGBP_ZM/S_JPYGBP(-1))" on the command line to create a series to test it , that works fine, but it does not work in the if statement.

I think this is a Bug and am getting desperate - help please Gareth.

Re: Bug in Error Message : vector-series-coefficient

Posted: Fri Aug 03, 2012 6:38 am
by EViews Gareth
You can't use an if statement on a series.

http://forums.eviews.com/viewtopic.php?f=5&t=3765

Re: Bug in Error Message : vector-series-coefficient

Posted: Fri Aug 03, 2012 8:26 am
by johnvaz
Thanks- I must say I am surprised - Any suggestions on how would I process a series to achieve what I am doing rather than observation by observation,

Re: Bug in Error Message : vector-series-coefficient

Posted: Fri Aug 03, 2012 8:29 am
by EViews Gareth