Creating 5-year averages from Panel Data

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

robob408
Posts: 1
Joined: Tue Mar 12, 2013 2:40 am

Creating 5-year averages from Panel Data

Postby robob408 » Tue Mar 12, 2013 2:47 am

Hi!

I have data on 40 countries over 20 years (1991-2010) on a number of variables including GDP and interest rate. I would like to create 5-year non-overlapping averages for each variable, i.e. instead of 20 observations for each country and variable, I would like to have 4 observations for each country and variable: One that is an average of the years 1991-1995, one 1996-2000 and so on. How can I make this happen?

I'm using Eviews 7.

Thanks!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Creating 5-year averages from Panel Data

Postby EViews Gareth » Tue Mar 12, 2013 7:43 am

Create a new page in your workfile with a 5 year frequency. Then copy the data over from the annual page to the new 5 year page. When doing the copy and paste, use Paste Special, so you can choose the frequency conversion method, and use "average" as the method.

Zjasmine
Posts: 1
Joined: Sat Apr 13, 2013 6:57 am

Re: Creating 5-year averages from Panel Data

Postby Zjasmine » Sat Apr 13, 2013 7:02 am

When I follow these steps I get the average for all countries per period, instead of seperate averages for each country. How can I get 5-year averages for each country?

Thanks!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Creating 5-year averages from Panel Data

Postby EViews Gareth » Sat Apr 13, 2013 7:14 am

Make the new page a panel with a five year frequency.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest