manipulation of an unbalanced panel

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

t_a_v_o
Posts: 8
Joined: Fri Aug 12, 2011 8:00 pm

manipulation of an unbalanced panel

Postby t_a_v_o » Fri Aug 12, 2011 8:11 pm

Hi,

I'm quite new to eviews and was wanting to manipulate an unbalanced panel to work out the % change across firms

Okay so I have a large number of firms e.g. 1000+ and yearly data of different variables between a certain period e.g. 1995-2008
Some firms however only have data not for the whole period e.g. just have data between 1995-2000 or 1999-2007 etc

firm year variable_x
1 1995 6897
1 1996 7902
1 1997 1890
1 1998 2755
1 1999 2746
1 2000 7888
2 1995 7000
2 1996 7544
3 1995 8776
3 1996 7655
3 1997 6543
3 1998 5432

So I was just wondering what is the best way to work out the percentage change across the firms because they have varying years of data?

Thank-you

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

manipulation of an unbalanced panel

Postby EViews Gareth » Fri Aug 12, 2011 8:30 pm

What does "percentage change across firms" mean?

t_a_v_o
Posts: 8
Joined: Fri Aug 12, 2011 8:00 pm

Re: manipulation of an unbalanced panel

Postby t_a_v_o » Fri Aug 12, 2011 10:50 pm

Sorry I meant the percentage change across years for each individual firm.

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

manipulation of an unbalanced panel

Postby EViews Gareth » Sat Aug 13, 2011 2:11 am

Can't you just use the @phc function?

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: manipulation of an unbalanced panel

Postby startz » Sat Aug 13, 2011 7:44 am

Can't you just use the @phc function?
@PhC requires approval of your dissertation committee. @pch is easier.

t_a_v_o
Posts: 8
Joined: Fri Aug 12, 2011 8:00 pm

Re: manipulation of an unbalanced panel

Postby t_a_v_o » Mon Aug 15, 2011 7:30 pm

Thank-you

t_a_v_o
Posts: 8
Joined: Fri Aug 12, 2011 8:00 pm

Re: manipulation of an unbalanced panel

Postby t_a_v_o » Mon Aug 15, 2011 9:11 pm

Also sorry what would I use to work out just the change across years, not in percentage form?

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

Re: manipulation of an unbalanced panel

Postby EViews Gareth » Tue Aug 16, 2011 8:46 am

You'll have to define what you mean by "change", but I think you just want the D(X) function.

t_a_v_o
Posts: 8
Joined: Fri Aug 12, 2011 8:00 pm

Re: manipulation of an unbalanced panel

Postby t_a_v_o » Tue Aug 16, 2011 8:51 pm

Yeah that was what I meant, however when calculating these, eviews doesn't take into account the different firms and works out the change across the whole data set, e.g.
firm year variable_x
1 1995 6897
1 1996 7902
1 1997 1890
1 1998 2755
1 1999 2746
1 2000 7888
2 1995 7000
2 1996 7544
3 1995 8776
3 1996 7655
3 1997 6543
3 1998 5432

when calculating the change/difference in variable_x it doesn't take into account the fact that the firm has changed, so to take into account the different firms' different years of data I would have to set restrictions right? But because my firms vary in the amount of years they have there's just not one simple restriction I can apply? hope that kinda make sense?

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

manipulation of an unbalanced panel

Postby EViews Gareth » Tue Aug 16, 2011 10:38 pm

As long as you have correctly told EViews the nature of your panel data, it will not mix firms.

t_a_v_o
Posts: 8
Joined: Fri Aug 12, 2011 8:00 pm

Re: manipulation of an unbalanced panel

Postby t_a_v_o » Thu Aug 18, 2011 6:52 pm

Hmmm I think that's the problem...
Finding this a bit difficult so I'm going to run through what I did can you tell me where I may have gone wrong please?

Firstly I have data that is across countries and also different firms across each country (some countries have a lot of firms and others don't). The time period is 1995 to 2008 (looking at annual data). However each firm has varying years of data due to availability (e.g. some have 1995-2008, some 1997-2004, some 1996-2006 etc). Therefore it's an unbalanced panel.

Ultimately I want to just analyse the firms right now and then later take into account the country...

So I did the File--> Open --> Foreign Data as Workfile --> Excel Read Step 1 of 3 --> Next --> Excel Step 2 of 3 --> Next --> Excel Step 3 of 3 (This is where I'm not too sure) What kind of structure should I use?

I hope that all makes sense
Thank-you

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

Re: manipulation of an unbalanced panel

Postby EViews Gareth » Thu Aug 18, 2011 7:23 pm


t_a_v_o
Posts: 8
Joined: Fri Aug 12, 2011 8:00 pm

Re: manipulation of an unbalanced panel

Postby t_a_v_o » Tue Sep 13, 2011 10:47 pm

Thanks,

This might be a silly question but I've got my file structured as a panel.
And am just looking to get some summary statistics...
Each series is structured by countries like your example.
I was wanting to get summary statistics for each individual country, how would I go about doing this when the each series has all the countries in it?

Hope that makes sense.

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

Re: manipulation of an unbalanced panel

Postby EViews Gareth » Wed Sep 14, 2011 7:52 am

View->Descriptive Statistics->Stats by Classification, then choose which stats you want to see, and enter "country" (or whatever your cross-section ID series is called) as the classifying series.

t_a_v_o
Posts: 8
Joined: Fri Aug 12, 2011 8:00 pm

Re: manipulation of an unbalanced panel

Postby t_a_v_o » Wed Sep 14, 2011 9:12 pm

Thanks again Gareth!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest