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
Fixed by PR #4601 (merged same day), which added n_trials to _init_keys/_get_init_kwds (statsmodels/genmod/generalized_linear_model.py) so fit_constrained on GLM-Binomial with count data correctly accounts for n_trials. A dedicated regression test (TestGLMBinomialCountConstrained, star98 dataset) confirms this today. Closing as fixed.
Activity
josef-pkt commentedon May 7, 2018
same for GLM fit_regularized which has unit tests only for binary Binomial case, and Poisson
josef-pkt commentedon May 7, 2018
It looks like fit_constrained works correctly after #4601
(I'm working in penalized branch with 4601 added)
Trying an example with dropping some exog and compare to fit_constrained
based on test case with star98 dataset
josef-pkt commentedon Jan 1, 2019
check and close as fixed (which it looks like it is based on the previous comment above)
bashtage commentedon May 3, 2019
@josef-pkt Do you think this issue has been fixed?
bashtage commentedon Jul 30, 2026
Fixed by PR #4601 (merged same day), which added n_trials to _init_keys/_get_init_kwds (statsmodels/genmod/generalized_linear_model.py) so fit_constrained on GLM-Binomial with count data correctly accounts for n_trials. A dedicated regression test (TestGLMBinomialCountConstrained, star98 dataset) confirms this today. Closing as fixed.