You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
inconvenient: logit when endog is (1,2) instead of (0,1) #1053
This breaks with a Singular Matrix problem in the Hessian calculation.
It took me two hours of figuring out the singular matrix issue, before I thought of checking endog
I think we should add a basic check for this.
I haven't looked at the details yet.
related: I was looking at using Logit for continuous variables in [0,1] interval, and it seemed to work.
Activity
josef-pkt commentedon Sep 19, 2014
http://stackoverflow.com/questions/20703733/logit-regression-and-singular-matrix-error-in-python
We should raise an error if there are no zero values
(endog==0).sum() == 0.ENH: Check binary input for correctness. Closes statsmodels#1053.