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
{{ message }}
Repository navigation
GenericLikelihoodModel.initialize sets self.score to approx_fprime #4453
(equality constraints for nonlinear optimization are another medium/long term wishlist item. fit_constrained only allows constraints on the parameters associated with exog.)
GenericLikelihoodModel and the accompanying Results subclass are a mess. It would be really nice to get it into better shape because
a) I would sleep better at night knowing that base.model was uniformly in good condition
b) you mentioned there being an API for Generic, and it would be great if that were made consistent and usable.
GenericLikelihoodModel is intentionally the "dirty" cousin of LikelihoodModel. It is supposed to have a default for everything except loglike, while the cleaner LikelihoodModel assumes that the subclasses provide all the missing pieces.
This does not mean that it has to be very dirty, and it could get another round.
Another issue that is open is that some of the GenericLM things can be moved to LM.
(e.g. I also just found that df_resid, df_model defautls don't work in a simple scipy.stats.distribution wrapper, on mailing list.)
Activity
jbrockmendel commentedon Apr 9, 2018
Also, sure would be nice if
fixed_paramsmaskwas set in a predictable way.josef-pkt commentedon Apr 9, 2018
needs review
E.g. I haven't looked at
fixed_paramsmaskin many yearsAFAIK, it didn't get implemented much outside of GenericLikelihoodModels, but it has a unit tested example use case
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/miscmodels/tmodel.py#L59
(equality constraints for nonlinear optimization are another medium/long term wishlist item. fit_constrained only allows constraints on the parameters associated with exog.)
jbrockmendel commentedon Apr 9, 2018
GenericLikelihoodModel and the accompanying Results subclass are a mess. It would be really nice to get it into better shape because
a) I would sleep better at night knowing that base.model was uniformly in good condition
b) you mentioned there being an API for Generic, and it would be great if that were made consistent and usable.
josef-pkt commentedon Apr 9, 2018
GenericLikelihoodModel is intentionally the "dirty" cousin of LikelihoodModel. It is supposed to have a default for everything except loglike, while the cleaner LikelihoodModel assumes that the subclasses provide all the missing pieces.
This does not mean that it has to be very dirty, and it could get another round.
Another issue that is open is that some of the GenericLM things can be moved to LM.
(e.g. I also just found that df_resid, df_model defautls don't work in a simple scipy.stats.distribution wrapper, on mailing list.)
BUG: meaningless self.score in GenericLikelihoodModel; closes statsmo…
BUG: meaningless self.score in GenericLikelihoodModel; closes statsmo…
Merge pull request #5130 from jbrockmendel/scoreprox