Near singular matrix: wrong import of data?
Posted: Thu May 26, 2016 5:45 am
Hi there, I'm doing a panel data regression with both time- as cross-section fixed effects. However, I get a near singular matrix error and I have the idea that that is because I imported my data wrongly. Simply said, I am measuring the influence of past stock performance on future stock performance, with macroeconomic control variables. Assume that I have three stocks and three months data (obviously, I use much more), my excel file (before importing in eviews) looks like this:
Stock - Month - Past performance - Future performance - Economic Variable
A Jan 3 5 6
B Jan -1 2 6
C Jan 0 1 6
A Feb 9 2 4.5
B Feb 3 8 4.5
C Feb 4 3 4.5
A Mar 6 2 8
B Mar 3 0 8
C Mar 2 9 8
As you can see, the last column is per month the same for every stock, which I think causes the near singular matrix error. Do you think the same? Am I organising my data correctly, or should I do this differently? Thanks a lot!
Stock - Month - Past performance - Future performance - Economic Variable
A Jan 3 5 6
B Jan -1 2 6
C Jan 0 1 6
A Feb 9 2 4.5
B Feb 3 8 4.5
C Feb 4 3 4.5
A Mar 6 2 8
B Mar 3 0 8
C Mar 2 9 8
As you can see, the last column is per month the same for every stock, which I think causes the near singular matrix error. Do you think the same? Am I organising my data correctly, or should I do this differently? Thanks a lot!