I have a zero-inflated probit model but I know the inflation probability of each observation. So my model is:
$P(y_i = 0|X) = (1-\pi_i) + \pi_i*(1-\Phi(X_i'\beta))$
$P(y_i = 1|X) = \pi_i*\Phi(X_i'\beta)$
and I know what $\pi_i$ is for each observation. Is there a way to estimate the model in R with zeroinfl()
or glm()
?
π
is a known constant, orπ
is a known random effect, orπ
is a known categorical variable (i.e., you haven
groups andπ
is known for each group)? Regardless, I imagine it could be coded-up withoptim
. I do not know about withglm
orzeroinfl()
. $\endgroup$