linearmodels icon indicating copy to clipboard operation
linearmodels copied to clipboard

ENH: add misspecificatin robust inference for GMM models

Open WanBenLe opened this issue 2 years ago • 7 comments

I don't know if linearmodels accept the new GMM models - I reproduced the following paper (correction for finite error identification, and iterative updated GMM models dealing with cluster with Over-identification J-test) on python, and got results consistent with the source code. I would love to have my code as part of linearmodels if possible. INFERENCE FOR ITERATED GMM UNDER MISSPECIFICATION, BRUCE E. HANSEN, SEOJEONG LEE,Econometrica, Vol. 89, No. 3 (May, 2021), 1419–1447

WanBenLe avatar May 21 '22 02:05 WanBenLe

Nothing yet, but doesn't seem too hard to implement.

bashtage avatar May 22 '22 22:05 bashtage

https://www.ssc.wisc.edu/~bhansen/papers/ecnmt_21.pdf

bashtage avatar May 22 '22 23:05 bashtage

I mean I've already done this, but I don't know if you'd like me to mention this part of the code to linarmodels according to the github process. image

WanBenLe avatar May 23 '22 01:05 WanBenLe

A PR would be welcome.

bashtage avatar May 23 '22 09:05 bashtage

I was using IVGMM before and found that there is no support for multi-IV and panel GMM, yesterday I checked the source code and found that there is no support for it, I don't know how I should start (arellano_bond method and panel GMM with time and clustering), the zip file is a supplement to the literature (MATLAB) and the txt file is the code I reproduced (. py), they are consistent in results

iterGMMest.txt

application.zip You can found the same in this site: https://www.econometricsociety.org/content/supplement-inference-iterated-gmm-under-misspecification

WanBenLe avatar May 25 '22 03:05 WanBenLe

One option would be to add support where it is possible, e.g., IVGMM, but not for models that are not supported.

bashtage avatar May 26 '22 22:05 bashtage

One of my ideas is whether it is possible to pass in panel data through the pannel data object, but I would first make this part of the code run independently.

WanBenLe avatar May 27 '22 07:05 WanBenLe