CIs in predictions from zero-inflated negative binomial model #1126
-
Hi all I am fitting a zero-inflated model to estimate a count that ranges from 0 to 10 from a similar variable that also ranges between these values. I may end up using an ordinal or a zero-inflated beta regression model due to some values being in the upper limit. However, I came across an intriguing result when fitting the negative binomial model and would like to hear your insights. I have two questions:
Below is the code I used to fit the model:
And below are the estimated probabilities of zero for each value of the predictor.
CI calculations by hand:
These values match the ones obtained from Then I discussed with @arthur-albuquerque and decided to use bootstrapping to see what would change. The CIs make more sense, having bounds that are positive and asymmetric relative to the estimate in the response scale.
I'd love to know your thoughts on why this is happening and if I did anything inappropriate when getting the estimates. Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, your guess is right: intervals are built symmetrically around the estimates. We can only back transform in a few models like The https://www.rdocumentation.org/packages/pscl/versions/1.5.9/topics/predict.zeroinfl |
Beta Was this translation helpful? Give feedback.
Yes, your guess is right: intervals are built symmetrically around the estimates.
We can only back transform in a few models like
glm()
when thepredict()
method allows to making predictions on the link scale and the inverse function is known.The
pscl
package doesn't seem to have a "zerolink" option (or similar), so I don't think this is possiblehttps://www.rdocumentation.org/packages/pscl/versions/1.5.9/topics/predict.zeroinfl