@ilast is not a Genr or series expression function

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

loulouviews
Posts: 60
Joined: Wed Mar 11, 2015 2:19 am

@ilast is not a Genr or series expression function

Postby loulouviews » Wed May 04, 2016 3:17 am

Hi,

I want to fill a vector with number of the last observation of timeseries
I'm doing :

Code: Select all

vector(2) myVector myVector.fill @ilast(myTs1), @ilast(myTs2)
But I got the error :"@ILAST is not a Genr or series expression function."
Doing :

Code: Select all

vector(2) myVector !nb1 = @ilast(myTs1) !nb2 = @ilast(myTs2) myVector.fill !nb1, !nb2
Is working like a charm but I'm wondering why I get the error mentioned above since @ilast returns a scalar which is what is expected as an argument by fill.
Last edited by loulouviews on Wed May 04, 2016 4:21 am, edited 2 times in total.

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

Re: @ilast is not a Genr or series expression function

Postby EViews Gareth » Wed May 04, 2016 3:46 am

There are certain functions that only work in "series" world, and some that only work in "vector" world.

The vector processor doesn't understand @ilast since it only exists in series world.

loulouviews
Posts: 60
Joined: Wed Mar 11, 2015 2:19 am

Re: @ilast is not a Genr or series expression function

Postby loulouviews » Wed May 04, 2016 4:21 am

Ok, thanks for your quick reply.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests