mgwr icon indicating copy to clipboard operation
mgwr copied to clipboard

I have dummy variables in my independent variables, which will cause "numpy.linalg.linalg.LinAlgError: Matrix is singular."

Open yahaha115 opened this issue 2 years ago • 1 comments

How should i solve this problem image

yahaha115 avatar Nov 08 '21 14:11 yahaha115

Hi there: It is possible that locally your dummy variable has all the 0s or 1s, therefore the matrix is singular.

Ziqi-Li avatar Nov 08 '21 19:11 Ziqi-Li