I'm working on a project where I analyze the impact of the change in per capita income on gubernatorial and presidential election results from 1970 to 2004. Because it's panel data, I'm using a fixed effects least squares model, where each year and each county has its own dummy variable. The problem is that there are roughly 3000 counties in the United States.
My equation is as follows:
Vote_percentage_by_county = αIncumbency + βper_capita_change*incumbency +County Fixed Effects + Year Fixed Effects.
I get a near singular matrix error, that the regressors may be perfectly collinear if I use more than 7 of the 9 year dummy variables. I get the same error when trying to include N-1 (N=number of counties) of the county level dummy variables.
I'm not sure what to do to fix this. Any help would be very much appreciated.
Fixed Effects Least Squares
Moderators: EViews Gareth, EViews Moderator
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Fixed Effects Least Squares
Check to see if you have a bunch of NAs in per_capita_change. Past that, you might post your workfile including the equation you're trying to estimate.
-
lightpoetry
- Posts: 4
- Joined: Mon Apr 02, 2012 11:43 pm
Re: Fixed Effects Least Squares
The equation is
ls vote_per_dem c incumbency per_capita_change*incumbency yearx idx
where id represents the county id
ls vote_per_dem c incumbency per_capita_change*incumbency yearx idx
where id represents the county id
-
lightpoetry
- Posts: 4
- Joined: Mon Apr 02, 2012 11:43 pm
Re: Fixed Effects Least Squares
Not sure how to attach the eViews file. I've tried several times but it just resets to no file chosen.
Last edited by lightpoetry on Thu Apr 26, 2012 5:49 pm, edited 1 time in total.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Fixed Effects Least Squares
Not quite.Here is the eViews file.
-
lightpoetry
- Posts: 4
- Joined: Mon Apr 02, 2012 11:43 pm
Re: Fixed Effects Least Squares
Is there a limit to the size of the attachment? The eViews file is ~700 mb.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Fixed Effects Least Squares
There is a limit. Also, that's a very, very big EViews file for the data you're describing. You might want to go Options/General Options/Data storage, and be sure Use compression is turned on.
Who is online
Users browsing this forum: No registered users and 2 guests
