Repository navigation
Conversation
|
some test failures in test_sandwich_cov.TestNegbinCluExposure needs decision for 0.9 I kind of like the solution, but I'm not sure yet whether I prefer an alternative with explicit keywords, or some kind of fit_difficult solution. |
|
about the test failure in In the test case the optimization option are not changed in the fit call. However, Poisson defaults to "newton" and NegativeBinomial defaults to "bfgs". After the change in this PR, A related possibility: If the preliminary estimator finds a good start_params for the main model, even if that optimization is difficult, the main model estimation might be easier and would work with a more efficient optimizer. In that case we would want a robust optimizer like "nm" in the preliminary and "newton" or similar in the main estimation. A change needed if we do something like in this PR: we need to transmit other keywords, at least the option for "minimize", so we can, e.g., use dogleg for both. e.g. Another issue, that I don't remember whether I tried for Poisson and Negbin is to start from the null model estimate if constant is included in the model, i.e. use mean for constant and zeros for slope coefficients. |
|
adding another issue here: |
|
trying out the example (without offset) solution with an attribute for fit options or putting it in fit I like the fit keyword better, but given the current |
|
just a few "nm" iterations in preliminary Poisson are enough in this case. with only two explanatory variables, |
ENH: add optim_kwds_prelim to count models in discrete_model closes #3578
I added the minimum amount of parameter to fit the Poisson inside the NB fit. They are inherent from the NB paramters.
This solve many potential problems with the convergence, including #3572
thx