Dear Eviews team,
I use Eviews 10, Mar 2018 build,
Assume x being series in a panel data workfile
@ifirst(x) or @ilast(x) give the @cellid associated with the of the first or last non-missing value of x
Is there a way to obtain also the respective @crossid ?
Best,
mamo
@ifirst and @ilast with panel data - how to obtain the respective @crossid
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13323
- Joined: Tue Sep 16, 2008 5:38 pm
Re: @ifirst and @ilast with panel data - how to obtain the respective @crossid
I don't believe there is in one line.
Follow us on Twitter @IHSEViews
-
- EViews Developer
- Posts: 564
- Joined: Thu Apr 25, 2013 7:48 pm
Re: @ifirst and @ilast with panel data - how to obtain the respective @crossid
I believe the long way around is something like,
Code: Select all
series tmp = @crossid
scalar ci = tmp(@ifirst(x))
Re: @ifirst and @ilast with panel data - how to obtain the respective @crossid
This works, many thanks;
btw, @ifirst(x) provides the @obsid - not the @crossid as I wrote - associated with the of the first or last non-missing value of x.
Best,
mamo
btw, @ifirst(x) provides the @obsid - not the @crossid as I wrote - associated with the of the first or last non-missing value of x.
Code: Select all
scalar obsid = @ifirst(x)
series tmp=@crossid
scalar crossid = tmp(@ifirst(x))
series tmp=@cellid
scalar cellid = tmp(@ifirst(x))
Best,
mamo
Who is online
Users browsing this forum: No registered users and 34 guests