Repository navigation
ENH: Check input to binary models - #1978
Conversation
ENH: Check input to binary models
|
@jseabold can you mention, link to the issue in the description of a PR. |
There was a problem hiding this comment.
I don't think that's what we want. It still works for continuous in interval [0,1].
My guess is that the right check is not (endog < 0 & endog > 1).any()
but I haven't gone through the code. S-shaped continuous variables, fractions seem to work well.
There was a problem hiding this comment.
Feel free to submit a new PR. We need to close remaining issues and get a RC out though. I don't recall seeing any theory for non-binary response for logit/probit.
There was a problem hiding this comment.
I think it's the same way as Poisson regression not requiring integers.
The few examples that I tried looked fine.
And I'm pretty sure that it's possible to find the theory somewhere. (I didn't go through all details in the Stata manuals yet.)
There was a problem hiding this comment.
I've seen fractional logit but I don't recall seeing that it just goes
through in the MLE.
see #1053