Page 1 of 1

@elem (specific observation value) for panel data

Posted: Mon Jan 25, 2010 3:15 am
by aradziwill
Hello,

I would like to extract the specific observation valur (for a given cross-section for a given year) for the variable from the panel data workfile.
How can I do it? @elem command does not work and I cannot find any substitute command for panels. I am pretty sure there must be an easy way around it

I use e-views 6

Many thanks,
Artur

Re: @elem (specific observation value) for panel data

Posted: Mon Jan 25, 2010 8:34 am
by EViews Gareth
Unfortunately, and surprisingly, there isn't an easy way to do it. I usually do something like setting the sample to be the one observation you want, then setting my scalar equal to the maximum of the series (since the maximum of a single value is just that single value!). Something along the lines of:

Code: Select all

smpl 1990 1990 if @crossid=3 scalar p = @max(x)
Which sets P equal to the value of X in year 1990 for cross-section 3.

Re: @elem (specific observation value) for panel data

Posted: Mon Jan 25, 2010 10:45 am
by aradziwill
Thanks a lot, this works very well, although the lack of such command is indeed surprising
Artur