Panel data

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

winger
Posts: 4
Joined: Sat Apr 14, 2012 5:19 am

Panel data

Postby winger » Mon Apr 16, 2012 6:04 am

Hello,

I have some question about panel data in Eviews 7.1. I have a dataset with 33 cross sections (dependend variable) and 7 ( yearly) explanatory variables over a time period of 17 years (1996-2011). So a 528 obs balanced panel.

First question: How can eviews show the different coefficients of the explanatory variables over time and cross section?

Second question: How can i model an dummy period-variable in eviews, so that my range is split in two, and i can compare the coefficients in the first range and the second range?

Can you help me please?

Thanks in advance,

Winger.

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

Re: Panel data

Postby EViews Gareth » Mon Apr 16, 2012 7:45 am

I presume by the first question you mean fixed effects, which are available from the View menu of a panel equation.

You can use a dummy variable in a panel equation in the same way as a normal equation.
Follow us on Twitter @IHSEViews

winger
Posts: 4
Joined: Sat Apr 14, 2012 5:19 am

Re: Panel data

Postby winger » Mon Apr 16, 2012 8:46 am

Thank you for your quick responds,

I allready explored this fucntion, but with the view->fixed-ramdom effects ->cross section effects menu, i only see one column with effects on the cross-section variables. My question is, how can i see the (hopefully) changing coefficients of the explanatory variables in time?

By example: C(1) 1996: 0.333 C(1) 1997: 0.555 ....... C(1) 2011: -0.6

And so one for the different explanatory variables?

Again, thank you in advance

Winger

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

Re: Panel data

Postby EViews Gareth » Mon Apr 16, 2012 8:49 am

Ah, I see. You want cross-section dependent regressor coefficients too. We don't support that in Panels, but we do in Pools. You'll have to convert your panel into a pool.
Follow us on Twitter @IHSEViews

winger
Posts: 4
Joined: Sat Apr 14, 2012 5:19 am

Re: Panel data

Postby winger » Mon Apr 16, 2012 9:01 am

Ok,

Can i convert this from my panel data, because i opened my panel data as foreign data out of a excel file. I do not realy need all of the years to be accounted for, but i don need all the cross-sections. One coefficient before 2007 and one after, per cross-section would work to. Is this possible within panel data?


Thanks,

Winger

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

Re: Panel data

Postby EViews Gareth » Mon Apr 16, 2012 9:11 am

I'm not sure I follow your question, but converting from panel to pool is easy. Just click on Proc->Restructure Current Page->Unstack in new page.

In the first box of the dialog you enter the name of your cross-section identifier, and in the second box you enter the name of your time series identifier. Hit ok and you're done.
Follow us on Twitter @IHSEViews

EViews Glenn
EViews Developer
Posts: 2672
Joined: Wed Oct 15, 2008 9:17 am

Re: Panel data

Postby EViews Glenn » Mon Apr 16, 2012 9:28 am

The one-coefficient-before-one-coefficient-after spec can done with panels (and more generally in all of EViews) simply by creating a dummy variable, say

Code: Select all

series after = @year > 2007

and instead of entering your specification as, say

Code: Select all

y c x

entering the interaction variables

Code: Select all

 y after (1-after) after*x (1-after)*x

The above spec assumes that you don't have fixed effects of any sort. If you do and don't want them interacted with the before-after period it's easy to adjust the spec. If you want an interaction of the fixed effects, it's a bit harder.

d952
Posts: 64
Joined: Tue Nov 22, 2011 6:30 am

Re: Panel data

Postby d952 » Sat Apr 21, 2012 2:13 pm

Dear Eviews

I have some questions about applying Dynamic panel data model!
firsty, I would like to know that in a panel GMM estimation I should use the raw data or log of the data? I tried to use raw data since there is differenced option in the procedure, but my results look like the results of raw data and was not normal!

and my second question is that, if I choose the fixed effects option, my results do not show overidentified by Sargan test, in this case, is there any problem with my data?

I am looking forward to hear from you
Thank you in advance
Niaz

d952
Posts: 64
Joined: Tue Nov 22, 2011 6:30 am

Re: Panel data

Postby d952 » Sat Apr 21, 2012 3:11 pm

by the way... I forgot to say that when I use fixed effects model, then the 2step procedure is near singular matrix, so I applied 1 step model and Sargan test reject the normality of the result!

EViews Glenn
EViews Developer
Posts: 2672
Joined: Wed Oct 15, 2008 9:17 am

Re: Panel data

Postby EViews Glenn » Mon Apr 23, 2012 11:52 am

I can't really help with either of those questions. Whether you should use the logs or levels of your data is really a question you need to answer about what specification you wish to estimate. And without knowing lots about your particular economic problem it's difficult to answer identification questions. I will note that you generally need a fair number of cross-sections and not too long panels for the DPD stuff to work well.


Return to “Estimation”

Who is online

Users browsing this forum: Google [Bot] and 59 guests