Are there any examples for statsmodels.gmm (Generalized Method of Moments)?

I'm trying to estimate some parameters using the GMM approach (Generalized Method of Moments, not Gaussian Mixture Model). I was hoping to use the package statsmodels if possible. The official description is listed here. However I got confused about where to specify the moment conditions. My model is not linear and does not use IV, so I cannot use NonlinearIVGMM and such. The "tutorials"/examples I found are only for models with IVs. I wonder if there are any examples to showcase how to use the more general GMM. Thanks.

2

1 Answer

Yes! You could see

Issue with using statsmodels.sandbox.regression.gmm.GMM

and

to have a good picture of the function. Basically you have to declare a class using GMM function from statsmodels and then a subclass defining your moment conditions and then, run.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like