Hello,
I am working with panel data but I need to select data for specific individuals, e.g. series(USA), such that I have a series I can substract from all other values of another series for all other observations, for example GDP-GPD(USA). How can I do this?
Data by identifier
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Data by identifier
Do you have a panel workfile? If so, something like:
where "country" is your cross-section identifier series.
Code: Select all
series gdpdiff = gdp - @maxsby(@recode(country="USA", gdp, 0), @obsid)
Re: Data by identifier
Great, that seems to have worked. Thanks a lot!
Who is online
Users browsing this forum: No registered users and 1 guest
