Hello, I have panel data for a number of variables (gdp, population growth etc), my cross-section is countries and the period is years. I wish to aggregate the variables into 5-year periods. Is there a way of doing this in Eviews?
thanks
aggregating years in panel data
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13586
- Joined: Tue Sep 16, 2008 5:38 pm
Re: aggregating years in panel data
Create a new page in your workfile with a structure of dated panel, with a 5-yearly frequency, and the same number of cross-sections. In each page create a new series:
Then copy from the first page to the new page, using general-match-merge as the copy criteria, and "dateid" and "id" as the two id series. Use SUM as the contraction method.
Code: Select all
series id = @crossid
Who is online
Users browsing this forum: No registered users and 2 guests
