Dear Statalisters,
I would like to estimate a model for a proportion y $E(y|x)=G(\beta_0+\beta_1 x_1+ \beta_2 x_2$ where $x_2$ is endogenous and $G( )$ is the logistic function. I would like to instrument $x_2$ with $z$ in the first stage. Is there a user written package or a common routine for this?
I could run the first stage by hand and use the predicted values in the -- glm, family(binomial) link(logit) -- command. But I guess taking care of the estimation error of the first stage regression in the structural equation might get tricky though.
Any help is highly appreciated.
I would like to estimate a model for a proportion y $E(y|x)=G(\beta_0+\beta_1 x_1+ \beta_2 x_2$ where $x_2$ is endogenous and $G( )$ is the logistic function. I would like to instrument $x_2$ with $z$ in the first stage. Is there a user written package or a common routine for this?
I could run the first stage by hand and use the predicted values in the -- glm, family(binomial) link(logit) -- command. But I guess taking care of the estimation error of the first stage regression in the structural equation might get tricky though.
Any help is highly appreciated.
Comment