Page 1 of 1

Data by identifier

Posted: Tue Nov 19, 2013 4:14 pm
by flcardoso
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?

Re: Data by identifier

Posted: Tue Nov 19, 2013 4:22 pm
by EViews Gareth
Do you have a panel workfile? If so, something like:

Code: Select all

series gdpdiff = gdp - @maxsby(@recode(country="USA", gdp, 0), @obsid)
where "country" is your cross-section identifier series.

Re: Data by identifier

Posted: Tue Nov 19, 2013 4:33 pm
by flcardoso
Great, that seems to have worked. Thanks a lot!