I've been working around Zero Inflated models. The data that I have, however, shows overdispersion so I am using a Zero Infalted Negative Binomial to model counts considering exposure.
The end goal that I am trying to reach is simply to show the expected value of children who consume a specific medication, considering their exposure to treatment.
Here's what I have so far:
- The model, itself, should consist of two components: a zero component (logit): $P(y=j)=\pi + (1-\pi)f_{Count}(0) if j=0$ and the actual count component (negative binomial in this case): $(1-\pi)f_{Count}(j), if j>0$
- Assuming that $\pi$ represents the probability of a 0 occuring.
So the model equation would simply require the replacement of $f_{Count}$ with the point mass function of the Negative Binomial. But in that case, the exposure is not accounted for.
For this, GLM seems to be an appropriate alternative. But I am having trouble writing the model and the expected value of it. I've read that in $Y \sim NegativeBinomial$, $E[Y] = (1-\pi)\mu$ where $\mu$ is the mean of the density of $f_{Count}$.
So should my link function be $log((1-\pi)\mu)$? If so, how do I proceed to, still, obtain the expected value of my data, given the fact that the model that I defined is defined by branches?
(I hope I got my point across. I am sorry if the terms are statistically incorrect, I tried my best.)