Importing Panel Data Into Eviews

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

mxalix258
Posts: 4
Joined: Tue Mar 29, 2011 7:15 am

Importing Panel Data Into Eviews

Postby mxalix258 » Tue Mar 29, 2011 7:37 am

Hi,

I am having some issues importing an excel data file into Eviews, It is panel data from 1997-2010 with 17 cross-sections, I just can't get eviews to recognize the dates correctly, or import all of the data.

Can anybody help me out with this?

Thanks,
Alix
Attachments
CorrectedData.xls
Data Set
(1.31 MiB) Downloaded 455 times

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

Re: Importing Panel Data Into Eviews

Postby EViews Gareth » Tue Mar 29, 2011 8:03 am

I don't think you have 17 cross-sections. Either it is a three-way panel, or you need to create more cross-secions than you currently have. There is currently no way to uniquely identify each row based on a date and a cross-section.

mxalix258
Posts: 4
Joined: Tue Mar 29, 2011 7:15 am

Re: Importing Panel Data Into Eviews

Postby mxalix258 » Tue Mar 29, 2011 8:18 am

I don't understand what I need to do to make it ready for importing into Eviews, how would I do either of those options?

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

Re: Importing Panel Data Into Eviews

Postby EViews Gareth » Tue Mar 29, 2011 9:12 am

It isn't an EViews issue per se. You need to think about how this data is a panel.

mxalix258
Posts: 4
Joined: Tue Mar 29, 2011 7:15 am

Re: Importing Panel Data Into Eviews

Postby mxalix258 » Tue Mar 29, 2011 9:40 am

I understand, how would you advice editing the data so that it is compatible? How does the format need to be changed.

It appears that I have the year id (year). But I have 2 cross-section id (importcountry_ and exportcountry_). It appears that, somehow, I have an index, say 3-2005, and it points to two different observations. That’s why the panel set up fails.

How do you suppose I change this so that each id points to one observation?

Sorry if this is confusing, I am fairly new to Eviews, or really any statistical software.

Thanks for your help.

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

Re: Importing Panel Data Into Eviews

Postby EViews Gareth » Tue Mar 29, 2011 9:43 am

Well I can't really advise you on how you want to think about your data. It seems you have two options, you either have a 3-dimensional panel (one time series, two cross-sections), or you have a 2D panel (one time series, one cross-section).

EViews will handle 3D panels fine, in that you can import it in and tell EViews you have two cross-sections. However some of the estimation and statistical procedures rely on you having only two dimensions, not 3.

It seems you could create a 2D panel simply by adding a new column that identifies the cross-section component. Some sort of code (off the top of my head, you could use something like GER_FRA, GER_UK etc..).

mxalix258
Posts: 4
Joined: Tue Mar 29, 2011 7:15 am

Re: Importing Panel Data Into Eviews

Postby mxalix258 » Tue Mar 29, 2011 11:13 am

Makes Sense! Thanks much for the help - I wasn't understanding the problem.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests