Dummy variables-Near Singular Matrix
Posted: Sun Apr 05, 2020 8:50 pm
I am working on my thesis and I found that when I include dummy variable(s) in the equation, I got "Near Singular Matrix" when I try to run the model.
I have checked that "Near Singular Matrix" means that the independent variables are multicollinear, but I still cannot run the model even I exclude one dummy variable.
My two dummy variables are cityA and cityB (there are more than 50 cities in the data set) and my data set is an unbalanced panel data with fixed effect on cross section and period.
I have try the below three equations but neither one can run the model
ROA c hhirev niis hhiloan cons crops lna l_a e_a dlna dlna2 cityA
ROA c hhirev niis hhiloan cons crops lna l_a e_a dlna dlna2 cityB
ROA c hhirev niis hhiloan cons crops lna l_a e_a dlna dlna2 cityA cityB
However, I can run the model without the dummy variable, i.e. ROA c hhirev niis hhiloan cons crops lna l_a e_a dlna dlna2
Is there any method to check which part is wrong? or how to solve this problem?
Thank you very much.
I have checked that "Near Singular Matrix" means that the independent variables are multicollinear, but I still cannot run the model even I exclude one dummy variable.
My two dummy variables are cityA and cityB (there are more than 50 cities in the data set) and my data set is an unbalanced panel data with fixed effect on cross section and period.
I have try the below three equations but neither one can run the model
ROA c hhirev niis hhiloan cons crops lna l_a e_a dlna dlna2 cityA
ROA c hhirev niis hhiloan cons crops lna l_a e_a dlna dlna2 cityB
ROA c hhirev niis hhiloan cons crops lna l_a e_a dlna dlna2 cityA cityB
However, I can run the model without the dummy variable, i.e. ROA c hhirev niis hhiloan cons crops lna l_a e_a dlna dlna2
Is there any method to check which part is wrong? or how to solve this problem?
Thank you very much.