Bug in Error Message : vector-series-coefficient

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

johnvaz
Posts: 2
Joined: Fri Aug 03, 2012 12:02 am

Bug in Error Message : vector-series-coefficient

Postby johnvaz » Fri Aug 03, 2012 12:18 am

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.
Last edited by johnvaz on Fri Aug 03, 2012 5:58 am, edited 1 time in total.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13600
Joined: Tue Sep 16, 2008 5:38 pm

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

Postby EViews Gareth » Fri Aug 03, 2012 6:38 am

You can't use an if statement on a series.

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

johnvaz
Posts: 2
Joined: Fri Aug 03, 2012 12:02 am

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

Postby johnvaz » Fri Aug 03, 2012 8:26 am

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,
Last edited by johnvaz on Fri Aug 03, 2012 8:30 am, edited 1 time in total.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13600
Joined: Tue Sep 16, 2008 5:38 pm

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

Postby EViews Gareth » Fri Aug 03, 2012 8:29 am



Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest