Different fixed effects in OLS estimation for panel data

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

monica88
Posts: 8
Joined: Fri Jul 05, 2013 2:28 am

Different fixed effects in OLS estimation for panel data

Postby monica88 » Fri Jul 05, 2013 2:47 am

Hi,

I do not have much experience with Eviews 7 and would like some help.

I have panel data for 6 countries over 80 quarters (Q1 1992 to Q4 2012) for the variables housing wealth, financial wealth and consumption. I would like to estimate the relationship between these using OLS. I am following the setup of another research paper, and they specify three models that they use:

Model 1: (A) Includes fixed effects (i.e. a set of dummy variables for each country).

Model 2: (A) Includes fixed effects (i.e. a set of dummy variables for each country) AND (B) country-specific time-trends.

Model 3: (A) Includes fixed effects (i.e. a set of dummy variables for each country) AND (C) year-specific fixed effects AND (D) seasonal (i.e. quarterly) fixed effects.

How do I do this in Eviews 7? I know I can choose between cross-section and period effects, but I don't know which they apply to (A, B, C, or D?) and how I get the other effects included in the estimation.

I hope someone can help me! Thank you in advance :)

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

Re: Different fixed effects in OLS estimation for panel data

Postby EViews Glenn » Fri Jul 05, 2013 10:11 am

If you are in a panel workfile

1. the built in cross-section fixed effects option

2. the built-in cross-section fixed effects option and the variable @EXPAND(ID)*@TREND
where id is the name of your cross-section ID series.

3. the built-in cross-section and period fixed effects options and the variable @EXPAND(@QUARTER). You'll have to use the option on @EXPAND to drop a quarter to avoid singularity.

There are different ways of doing this if you are using a pool object.

monica88
Posts: 8
Joined: Fri Jul 05, 2013 2:28 am

Re: Different fixed effects in OLS estimation for panel data

Postby monica88 » Mon Jul 08, 2013 1:32 am

Thank you very much Glenn, this is very helpful! :)

Can I ask how I do it if I am using a pool object?

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

Re: Different fixed effects in OLS estimation for panel data

Postby EViews Glenn » Mon Jul 08, 2013 11:51 am

If you are in a pool workfile

1. the built in cross-section fixed effects option

2. the built-in cross-section fixed effects option and the put @TREND in the cross-section specific regressors box.

3. the built-in cross-section and period fixed effects options and the variable @EXPAND(@QUARTER). You'll have to use the option on @EXPAND to drop a quarter to avoid singularity.

monica88
Posts: 8
Joined: Fri Jul 05, 2013 2:28 am

Re: Different fixed effects in OLS estimation for panel data

Postby monica88 » Tue Jul 09, 2013 3:42 am

Thank you very much :)

monica88
Posts: 8
Joined: Fri Jul 05, 2013 2:28 am

Re: Different fixed effects in OLS estimation for panel data

Postby monica88 » Tue Jul 09, 2013 4:49 am

Hi again,

Sorry, I just had a problem with the last model (the built-in cross-section and period fixed effects options and the variable @EXPAND(@QUARTER). You'll have to use the option on @EXPAND to drop a quarter to avoid singularity).

I am using a panel workfile. When I tried this, I got the message: "Near singular matrix" :(

I first tried: logcons c loginc lognet logfin loghouse @expand(@quarter)
Then I tried: logcons c loginc lognet logfin loghouse @expand(@quarter,@dropfirst)

Have I not done it correctly?

Thank you for your help!

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

Re: Different fixed effects in OLS estimation for panel data

Postby EViews Glenn » Tue Jul 09, 2013 11:39 am

The period effects are always going to be correlated with your quarterly dummies since the latter are the same. I misspoke (mistyped) earlier. Since you are structured as a quarterly workfile, you'll want to expand the year variable to add your year dummies (I had thought you were structured as an annual). Note that you still may get singularities if there are any variables that don't have variation within one of you classifications.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests