You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stata has ivpoisson which has both the additive and multiplicative error model.
Besides GMM it uses a second method.
GMMPoisson is essentially finished, but it's in the test suite as a test case for GMM, and I have the notebook as usage example for GMM.
I don't remember if it has the full extra results. Unit tests are against generic GMM in Stata not against ivpoisson.
move it to discrete_models.
Stata also has ivprobit, which could follow the same pattern.
Stata doesn't have ivlogit, which, IIRC, would also be easy but doesn't have additive IV structure. I guess it would need to subclass GMM instead of IVGMM.
As bonus, with instruments=exog (no endog in explanatory variables), we would have sandwich robust covariances.
Activity
josef-pkt commentedon Nov 10, 2021
gmm poisson unit tests use docvis data of cameron trivedi count book (racd)
this looks like the do file that I used to store the gmm results (
to_py_poisson_gmm.do)I had transformed some variables from the original data set because large values caused problems in optimization (with exp mean function)
josef-pkt commentedon Nov 10, 2021
(I deleted comments that I made by mistake here instead of in 7870.)
josef-pkt commentedon Nov 27, 2021
my old notebook for GMMPoisson is at https://gist.github.com/josef-pkt/6890383
josef-pkt commentedon Oct 8, 2025
I reference that I opened by chance (correlation and poisson in title)
Boes, Stefan. 2010. “Count Data Models with Correlated Unobserved Heterogeneity.” Scandinavian Journal of Statistics 37 (3): 382–402. https://doi.org/10.1111/j.1467-9469.2010.00689.x.
uses GMM and (superficially) looks similar to multiplicative GMMPoisson
(I added articles several times to Zotero since 2012)