j***@gmail.com
2018-10-10 01:40:19 UTC
https://github.com/statsmodels/statsmodels/issues/5316
GLM has all the historical test for IRLS. It looks like gradient
optimization in GLM still does not have enough test coverage to catch
refactoring mistakes.
I found this because my standard errors didn't match in the penalized case
while looking at gam and similar L2 penalized GLM.
https://github.com/statsmodels/statsmodels/pull/5296
Scale handling in GLM is a nasty (complex and fragile) business.
Many of the unit test that I added in last few years are for fixed scale or
for sandwiches which don't use scale directly for cov_params. The heavily
unit tested cases are GLM Logit and Poisson which both have fixed scale,
and not many unit test for the QMLE excess dispersion case.
The offending refactoring bug has not been released, i.e. it happened after
0.9, and can be fixed before the next release.
https://github.com/statsmodels/statsmodels/pull/4620/commits/407807912a79c24eed09a39c991b07a40015e8f5
(a reason not to have very short release cycles)
Josef
GLM has all the historical test for IRLS. It looks like gradient
optimization in GLM still does not have enough test coverage to catch
refactoring mistakes.
I found this because my standard errors didn't match in the penalized case
while looking at gam and similar L2 penalized GLM.
https://github.com/statsmodels/statsmodels/pull/5296
Scale handling in GLM is a nasty (complex and fragile) business.
Many of the unit test that I added in last few years are for fixed scale or
for sandwiches which don't use scale directly for cov_params. The heavily
unit tested cases are GLM Logit and Poisson which both have fixed scale,
and not many unit test for the QMLE excess dispersion case.
The offending refactoring bug has not been released, i.e. it happened after
0.9, and can be fixed before the next release.
https://github.com/statsmodels/statsmodels/pull/4620/commits/407807912a79c24eed09a39c991b07a40015e8f5
(a reason not to have very short release cycles)
Josef