near singular matrix

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

sid85
Posts: 7
Joined: Sun Jun 14, 2009 7:43 am

near singular matrix

Postby sid85 » Wed Jun 17, 2009 11:42 am

Hello,
I'm trying to estimate an equation: freq c sex ag1 ag2 ag3 ag4 ag5 ag6 ag7 ag8 ap1 ap2 ap3 ap4 av1 av2 av3 av4 us1 us2 us3 us4 m1 m2 m3 m4 m5 by count method, each of these variables can take 1 or 0, the problem is that I have near singular matrix and I don't know how to resolve it :( , any solutions ? :D

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

Re: near singular matrix

Postby EViews Gareth » Wed Jun 17, 2009 11:49 am

Your regressors are probably co-linear.


You solve it by removing the co-linear regressors.


There's been numerous similar posts.

sid85
Posts: 7
Joined: Sun Jun 14, 2009 7:43 am

Re: near singular matrix

Postby sid85 » Wed Jun 17, 2009 4:09 pm

I've looked to the topics but I haven't found my answer: I know that there is collinarity, the problem is : I haven't found the collinear variables, the correlation coefficients are <0.7
Please help, I upload the data if someone can help me
Attachments
regression.xls
(247.5 KiB) Downloaded 660 times

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

Re: near singular matrix

Postby EViews Gareth » Wed Jun 17, 2009 4:27 pm

The correlation between the coefficients doesn't matter, they can still be perfectly co-linear. Try running the following program, for example:

Code: Select all

create u 100 rndseed 1 series y=nrnd>0 series x1=nrnd>0 series x2 = nrnd>0 series x3 = 1-x1-x2 group g x1 x2 x3 show g.cor count y c x1 x2 x3
X1, X2 and X3 are all dummy variables. By construction they are co-linear. Yet the highest correlation between any two of them is only 0.7 ish

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: near singular matrix

Postby startz » Wed Jun 17, 2009 5:11 pm

I've looked to the topics but I haven't found my answer: I know that there is collinarity, the problem is : I haven't found the collinear variables, the correlation coefficients are <0.7
Please help, I upload the data if someone can help me
Remember that no one knows your variable definitions. Have you checked for the dummy variable trap?

(By the way, why upload an excel file instead of an EViews file?)

sid85
Posts: 7
Joined: Sun Jun 14, 2009 7:43 am

Re: near singular matrix

Postby sid85 » Thu Jun 18, 2009 2:37 am

I tried your code QMS Gareth and I have the same problem: near singular matrix :s
Sorry for the upload, here is the eviews file
Attachments
regression.wf1
(285.6 KiB) Downloaded 721 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: near singular matrix

Postby startz » Thu Jun 18, 2009 7:03 am

Your equation is misspecified. You have indeed fallen into the dummy variable trap.

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

Re: near singular matrix

Postby EViews Gareth » Thu Jun 18, 2009 8:00 am

I tried your code QMS Gareth and I have the same problem: near singular matrix :s
That was the point.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests