Logit regression statsmodels
How many variable I can use in stats models logit regression?
it shows error if I add more than certain numbers of variables
3 answers ( 0 marked as helpful)
Thank you for reaching out!
Could you please share the error you are getting?
Thanks for prompt response Hristina. I made a mistake when I was assigning the the variable. The input had same variables twice led to the error.
below is the error I got.
File ~/opt/anaconda3/lib/python3.9/site-packages/numpy/linalg/linalg.py:88, in _raise_linalgerror_singular(err, flag) 87 def _raise_linalgerror_singular(err, flag): ---> 88 raise LinAlgError("Singular matrix") LinAlgError: Singular matrix
I'm happy to hear you've found the problem!
Enjoy the rest of the course! :)
Submit an answer
Resolved: Cannot upload "Linear Regression Practical Example (Part 2) Notebook with Comments.ipynb" on Jupyter