Fixed Effects Vector

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

Kouvas
Posts: 34
Joined: Sat Aug 31, 2013 3:28 am

Fixed Effects Vector

Postby Kouvas » Mon Jun 16, 2014 10:10 am

Hello

I want to save the fixed effects of a panel regression that is estimated in a rolling period fashion. The problem is that the @effects function creates a table that drops some of the cross sections. Due to the fact that I need to assign the values to each cross-section I created a loop that searches the effects vector for the correct cross-section and saves the respective value in a new vector. However, due to the high volume of data I have this takes a lot of time. Is there any other way to do it?

The code is as follows:
for !n=1 to !firms
for !b=1 to equc.@ncross
if @val(@right((effects_p(!b+1,2)),9))=!n then
effects(!n,1)=@val(@right((effects_p(!b+1,2)),9))
effects(!n,2)=@val(@right((effects_p(!b+1,3)),9))
Exitloop
Endif
next
next

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

Re: Fixed Effects Vector

Postby EViews Gareth » Mon Jun 16, 2014 11:02 am

Why are some of the cross-sections dropped?

Kouvas
Posts: 34
Joined: Sat Aug 31, 2013 3:28 am

Re: Fixed Effects Vector

Postby Kouvas » Mon Jun 16, 2014 11:32 am

It is an unbalanced panel

Kouvas
Posts: 34
Joined: Sat Aug 31, 2013 3:28 am

Re: Fixed Effects Vector

Postby Kouvas » Mon Jun 16, 2014 12:19 pm

I think I found how to do it. Just a clarification..in order to estimate the firm-specific fixed effect should I add each member of the fixed effects vector to the overall coefficient? Thanks in advance.

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

Re: Fixed Effects Vector

Postby EViews Gareth » Mon Jun 16, 2014 12:51 pm

Yes.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 1 guest