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
ENH: missing post-estimation for truncated and hurdle count models #8422
score_test, get_distribution and get_influence are not supported by truncated and hurdle models.
They raise exceptions a various places mainly indicating a missing model methods,
e.g. score_factor, hessian (in hurdle model), _deriv_score_obs_dendog for influence
found while trying to work on a notebook for the docs #8359 (comment)
get_prediction has dist attribute but it is the normal distribution in the hurdle model
wrong default ?
No, just misleading naming.
This should be the distribution for inference using delta method. It's not related to the distribution of endog in the model.
There is a lot of indirection in get_prediction with delta method (based on _get_wald_nonlinear, ... ) dist attribute is added in and inherited from PredictionResultsBase.
get_distribution for hurdle count models is still discrete, so we can still subclass rv_discrete
censored continuous model like Tobit will be mixed, continuous distribution plus mass points, also Tweedie has that but Tweedie also has no get_distribution yet.
For rvs of truncated distributions, we have to decide whether to drop samples in truncated part or use ppf.
Aside: zi distributions like zinegativebinomial_gen don't have docstrings that explain what the parameters are.
Activity
josef-pkt commentedon Sep 30, 2022
get_prediction has
distattribute but it is the normal distribution in the hurdle modelwrong default ?
No, just misleading naming.
This should be the distribution for inference using delta method. It's not related to the distribution of endog in the model.
There is a lot of indirection in get_prediction with delta method (based on _get_wald_nonlinear, ... )
distattribute is added in and inherited fromPredictionResultsBase.josef-pkt commentedon Apr 7, 2023
get_distribution for hurdle count models is still discrete, so we can still subclass rv_discrete
censored continuous model like Tobit will be mixed, continuous distribution plus mass points, also Tweedie has that but Tweedie also has no
get_distributionyet.For rvs of truncated distributions, we have to decide whether to drop samples in truncated part or use
ppf.Aside: zi distributions like zinegativebinomial_gen don't have docstrings that explain what the parameters are.