Skip to content

ENH: Check input to binary models - #1978

Merged
jseabold merged 2 commits into
statsmodels:masterfrom
jseabold:binary-check
Sep 20, 2014
Merged

jseabold merged 2 commits into
statsmodels:masterfrom
jseabold:binary-check

Conversation

@jseabold

Copy link
Copy Markdown
Member

see #1053

jseabold added a commit that referenced this pull request Sep 20, 2014
ENH: Check input to binary models
@jseabold
jseabold merged commit 1c54d66 into statsmodels:master Sep 20, 2014
@jseabold
jseabold deleted the binary-check branch September 20, 2014 22:44
@josef-pkt

Copy link
Copy Markdown
Member

@jseabold can you mention, link to the issue in the description of a PR.
I always have huge problems finding a PR when the issue only shows the commit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen fractional logit but I don't recall seeing that it just goes
through in the MLE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants