Alpha series, Fetch function...

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

Posts: 7
Joined: Fri Jun 07, 2013 1:05 am

Alpha series, Fetch function...

Postby Armine » Mon Jun 10, 2013 2:48 am

Dear Member I have several question

1. How can I get the number of rows in the alpha series . the function @rows is written to work for alpha series as well but it doesnt .
Syntax: @rows(o)
Argument: matrix, vector, rowvector, sym, series, or group, o
Return: scalar
Returns the number of rows in the matrix object, o.
scalar sc1=@rows(m1)

It gives me back an error saying that it is only for matrix

2. The function
fetch(options) object_list
what if I have all the elements that i want to fetch saved in a table and cant put by hand one by one , can I somehow refer to each element of the table rows and fetche that element from the database?

Thanks beforehand

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

Re: Alpha series, Fetch function...

Postby EViews Gareth » Mon Jun 10, 2013 8:24 am

@rows works on a series, but not on an Alpha.

It is somewhat silly to work on a series, to be honest. All series (and alphas) have the same number of rows - and that is the number of observations in the workfile page. Thus to get their size, you can just use @obsrange.

You can cycle through the rows of the table one by one, fetching them in a for loop.
Follow us on Twitter @IHSEViews

Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 5 guests