Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show warnings if glm.fit doesn't converge. #1844

Closed
colinfang opened this issue Jul 24, 2014 · 2 comments
Closed

Show warnings if glm.fit doesn't converge. #1844

colinfang opened this issue Jul 24, 2014 · 2 comments

Comments

@colinfang
Copy link

Currently in a glm fit I cannot find a way to check if a fit is convergent or not.

http://stackoverflow.com/questions/24939357/how-can-i-check-if-a-glm-lm-of-statsmodels-is-converged-or-not?

Having read the source code:

https://github.com/statsmodels/statsmodels/blob/master/statsmodels/genmod/generalized_linear_model.py

It doesn't seem to pass converged to an outer scope. Can we have it in the result as well?

@josef-pkt josef-pkt added comp-genmod type-bug type-invalid invalid bug reports, not a bug or issue type-enh and removed type-invalid invalid bug reports, not a bug or issue labels Jan 11, 2015
@josef-pkt josef-pkt added this to the 0.7 milestone Jan 11, 2015
@josef-pkt
Copy link
Member

check for 0.7 if this is still open.

@josef-pkt
Copy link
Member

GLM._fit_irls attaches a converged attribute, but doesn't define mle_retvals (see #1722 )

glm_results.converged = converged

closing

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

No branches or pull requests

2 participants