Repository navigation
ENH: Generalized linear mixed models (Bayesian) - #4189
Conversation
|
This pull request introduces 2 alerts - view on lgtm.com new alerts:
Comment posted by lgtm.com |
|
travis test failures are not small. I don't think I will have time to review this anytime soon except for spot checking or very superficial review. |
1 similar comment
1 similar comment
1 similar comment
1 similar comment
1 similar comment
1 similar comment
1 similar comment
|
This pull request introduces 1 alert - view on lgtm.com new alerts:
Comment posted by lgtm.com |
1 similar comment
1 similar comment
|
This pull request introduces 3 alerts - view on lgtm.com new alerts:
Comment posted by lgtm.com |
| return summ | ||
|
|
||
|
|
||
| class BinomialBayesMixedGLM(_VariationalBayesMixedGLM, _BayesMixedGLM): |
There was a problem hiding this comment.
currently _VariationalBayesMixedGLM already subclasses _BayesMixedGLM and is not an extra Mixin, just regular inheritance
|
I'm going to go ahead and merge this now. I will add support for scale parameters in a separate PR. |
This is a basic implementation of Bayesian mixed GLM (GLIMMIX). It is an alternative to using maximum likelihood that is somewhat easier to implement. Laplace approximations should work for any GLM, but the more sophisticated variational Bayes approach is only implemented here for logistic models right now. The VB approach is slow (5-10 minutes to fit a fairly complex model), but ML would also be slow for this problem.
Update: it's not particularly slow anymore, due to improvements in the implementation.