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
(aside we don't have a issue label for miscmodels)
some discussion for ZIP is in #1086 with a link to another version by Skipper, which doesn't have predict either, but it has a few other things like zero truncated Poisson pmf
AFAIR, we don't have a good keyword for which prediction or what to return
We will need options for what to predict, i.e. expected value/mean (default), mean of Poisson, linear predictor of poisson or maybe truncated mean conditional on not zero.
In the extended version with explanatory variables for the inflation or zero modification part, we will also need to predict the mixture probability.
Note, those classes in miscmodels.count were written as example and test cases for the GenericLikelihoodModel framework and are not fully or efficiently implemented models. e.g. no analytical derivatives.
A predict function similar to the one in my previous comment has been added to the new count models in discrete including zero-inflated.
I think we don't need to add this to the misc models version.
However, the doc string of the miscmodel should point to the discrete version, and we keep the miscmodels version just as example and test case for GenericLikelihoodModel.
Activity
josef-pkt commentedon Feb 22, 2017
(aside we don't have a issue label for miscmodels)
some discussion for ZIP is in #1086 with a link to another version by Skipper, which doesn't have predict either, but it has a few other things like zero truncated Poisson pmf
AFAIR, we don't have a good keyword for
whichprediction orwhatto returnWe will need options for what to predict, i.e. expected value/mean (default), mean of Poisson, linear predictor of poisson or maybe truncated mean conditional on not zero.
In the extended version with explanatory variables for the inflation or zero modification part, we will also need to predict the mixture probability.
Note, those classes in miscmodels.count were written as example and test cases for the GenericLikelihoodModel framework and are not fully or efficiently implemented models. e.g. no analytical derivatives.
josef-pkt commentedon Feb 24, 2017
here is a draft
I'm not a fan of "which"
results look correct in the large sample behavior
josef-pkt commentedon Jul 16, 2018
A predict function similar to the one in my previous comment has been added to the new count models in discrete including zero-inflated.
I think we don't need to add this to the misc models version.
However, the doc string of the miscmodel should point to the discrete version, and we keep the miscmodels version just as example and test case for GenericLikelihoodModel.