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
Fixed Effects Vector
Moderators: EViews Gareth, EViews Moderator
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13585
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Fixed Effects Vector
Why are some of the cross-sections dropped?
Re: Fixed Effects Vector
It is an unbalanced panel
Re: Fixed Effects Vector
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
Who is online
Users browsing this forum: No registered users and 1 guest
