Aggregation of 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

corona
Posts: 4
Joined: Tue Aug 27, 2013 1:05 pm

Aggregation of Panel Data

Postby corona » Tue Aug 27, 2013 1:26 pm

I have an unbalanced panel which consists of: 1) hundreds of unique individual id; 2) a group id (A,B,C); 3) T time periods; 4) other variables

I want to create a panel in which the individuals are aggregated by group, so that the panel is 3xT.

I have created a new page using group id as the cross id, then performed a matched merge, contracting using the mean. I must be doing something wrong because the values of the other variables (weight, height, etc.) are the same across groups for corresponding time periods. Is there a step-by-step example of how to correctly do what seems like should be a common application?

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

Re: Aggregation of Panel Data

Postby EViews Gareth » Tue Aug 27, 2013 1:27 pm

Could you provide your workfile (or an example of similar structure)?

corona
Posts: 4
Joined: Tue Aug 27, 2013 1:05 pm

Re: Aggregation of Panel Data

Postby corona » Tue Aug 27, 2013 2:29 pm

Attached is a workfile. I want to aggregate dq by proptype and activitydt. Then in another page I want to aggregate dq by purposetype and activitydt. BTW I am using EVIEWS 8 Enterprise 64 bit.
Attachments
test v3.WF1
(1.15 MiB) Downloaded 213 times

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

Re: Aggregation of Panel Data

Postby EViews Gareth » Tue Aug 27, 2013 4:03 pm

These are the steps I took, which seemed to work:

http://www.eviews.com/Forum_support/Pan ... llapse.htm

corona
Posts: 4
Joined: Tue Aug 27, 2013 1:05 pm

Re: Aggregation of Panel Data

Postby corona » Wed Aug 28, 2013 2:02 pm

Thank you that does the trick!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests