Repository navigation
BUG: GLM-Gaussian fit_constrained, wrong bse - #4195
Conversation
|
as red as expected more tests: the Poisson and Logit/Binomial tests in discrete test_constrained don't include unit tests for cov_type |
|
correction: It looks like only discrete.Poisson has fit_constrained, it is not added to any other classes Stata results are for Logit and for GLM Binomial, one Stata result, |
|
question: Do the start_params changes affect or interact with fit_regularized? Is llnull correctly adjusted? aside: Does llnull include an offset? |
|
aside: GLM._fit_gradient does correctly a normalized_cov_params scale correction |
|
This should be green now, fixes scaling bug in GLM-Gaussian and makes the same change to the generic version and the Poisson method. This should be finished for the bug fix and unit tests, but there are more minor refactorings and changes possible, for a later PR. |
ba00e63 to
a2e65a2
Compare
|
There ain't no future in python 2.7 |
|
green enough, merging |
issue #4193
This currently adds unit tests for Gaussian compared to OLS for a single parameter constraint, inlcudes cov_type='HC0' test.
There is one test failure with master, bug not yet fixed.
The work around is to assign cov_params_default which doesn't fail the unit tests.
cov_type='HC0' looks correct with
fit_constrained, tests don't failbug fix which most likely works is
to assign directly to cov_params_default in fit_regularized
side issue: OLS and GLM don't agree on scale with master (in this branch), difference in example is around 1%
I got agreement between OLS and GLM-Gaussian for scale when I worked on top of #3856 which looks like fixes the scale difference.
Aside: fit_constrained never got a follow-up #1749, see comments in original PR #1714