Finding first valid data in group of series

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

rloc
Posts: 7
Joined: Mon May 07, 2012 6:07 am

Finding first valid data in group of series

Postby rloc » Mon May 07, 2012 6:14 am

@ifirst does not work with a group. I want to find the LATEST FIRST DATE across series of valid data in a group containing n series. Alternately, is there a way to loop over the names of series in a group and then I will check the @ifirst of each and find the greatest.

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

Re: Finding first valid data in group of series

Postby EViews Gareth » Mon May 07, 2012 7:41 am

You'll have to loop.

A group loop looks something like:

Code: Select all

for !i=1 to g.@count %name = g.@seriesname(!i) 'do something with {%name} next

rloc
Posts: 7
Joined: Mon May 07, 2012 6:07 am

Re: Finding first valid data in group of series

Postby rloc » Mon May 07, 2012 8:46 am

Thanks, I was going that way, but struck out using @members and trying to loop over the string names.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests