Copying one cross section
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Copying one cross section
I'm sure this is obvious, but I've forgotten how to do it. I have a panel organized as countries by years. I want to create a new variable that is country i GDP in year t minus US GDP in year t. How do I that?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Copying one cross section
Probably easier ways to do it, but this works:
Code: Select all
series gdpidx = gdp - @meansby(gdp, @date, "if country=""USA""")
Who is online
Users browsing this forum: No registered users and 2 guests
