Dear STATA-listers
I am struggling to understand how to implement the example at pag.32 of the STATA MANUAL (link below). Shortly put, I want to run a GMM estimator with a poisson distribution and considering one regressor as endogenous. This is exactly the procedure described at pag 32 which I am not able to replicate even for the example provided. If I understood correctly, as a first step i should run the program described at pag 33 and then I could run the example provided at pag. 28. However, I obtain the following error message:
error calling gmm_poi at initial values
‘mu’ invalid name
I guess need to change somehow the code at pag.32 but I have no idea how. Can somebody help me out? This is only the example !
Thanks a lot for your help!!
http://www.stata.com/manuals13/rgmm.pdf
I am struggling to understand how to implement the example at pag.32 of the STATA MANUAL (link below). Shortly put, I want to run a GMM estimator with a poisson distribution and considering one regressor as endogenous. This is exactly the procedure described at pag 32 which I am not able to replicate even for the example provided. If I understood correctly, as a first step i should run the program described at pag 33 and then I could run the example provided at pag. 28. However, I obtain the following error message:
error calling gmm_poi at initial values
‘mu’ invalid name
I guess need to change somehow the code at pag.32 but I have no idea how. Can somebody help me out? This is only the example !

Thanks a lot for your help!!
http://www.stata.com/manuals13/rgmm.pdf
Comment