Closed zeileis closed 2 years ago
Wonderful, thank you!
Perfect, thanks! 🎉
The next step would be to provide the same for the zero-augmented negative binomial distributions. This is pretty much straightforward, I just have to do the algebra to get the skewness and kurtosis (if I can) which might be tricky.
And then only the mean+size parameterization is left for the negative binomial in order to support the standard count regression distributions. Do you have any thoughts/preferences regarding this? I think it would be relatively straightforward to allow the same NegativeBinomial()
creator function with either p
+ size
or with mu
+ size
because in the background the same d/p/q/r functions for the nbinomial
are called. Should I have a stab at this?
Sounds good to me!
Alex @alexpghayes , as already mentioned in the discussion about the Poisson distribution vignette, I have now put together
distributions3
support for the two standard zero-augmented Poisson distributions:lambda
with excess zeros with probabilitypi
. Thus, there is a mixed source of zeros: Poisson vs. excess.1 - pi
with a left-truncated (at zero) Poisson distribution with parameterlambda
. Thus,pi
is the hurdle-crossing probability at zero and the only source of zeros.For both distributions I have added
d
/p
/q
/r
functions forzipois
andhpois
, respectively, following the style of the correspondingpois
functions. Then I have addedZIPoisson()
andHurdlePoisson()
constructors along with the corresponding methods following the style ofPoisson()
. This infrastructure will greatly facilitate working with probabilistic regression models based on these distributions.