Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: score/Lagrange Multiplier test for GMM #2637

Open
josef-pkt opened this issue Oct 3, 2015 · 2 comments
Open

ENH: score/Lagrange Multiplier test for GMM #2637

josef-pkt opened this issue Oct 3, 2015 · 2 comments

Comments

@josef-pkt
Copy link
Member

This seems to be missing in current GMM code, I don't remember if or what I read about lagrange multiplier tests in GMM.

At the end here
https://github.com/josef-pkt/misc/blob/gmm_glm/notebooks/ex_gmm_glm.ipynb
I compare score test in GLM with test of overidentifying restriction in GMM, but that's not the same as a score test since we don't keep the parameters fixed. Or if we put zeros in the weight matrix, then we don't get the unrestricted values (i.e. with full weight matrix).

related: maxiter=0 changes the parameters from the starting values, AFAICS in an example
(I thought that I have an issue that maxiter=0 keeps params unchanged, e.g. #1728)

related issues:
#2041 score tests, conditional moment tests
#2096 PR for score tests, lagrange multiplier tests and conditional moment tests (PR for translating theory into code)
#1096 review and more fixes for GMM (issue sounds outdated)

@josef-pkt
Copy link
Member Author

A good read on testing in GMM including LM
https://eml.berkeley.edu/~mcfadden/e240b_f01/ch3.pdf from McFadden's course
https://eml.berkeley.edu/~mcfadden/e240b_sp03/e240b.html

It has more intuition than the handbook article (AFAIR that one)
I remember now reading a lot about this but with the context of QMLE in mind in #2096 and didn't look at implications for my GMM implementation.

McFadden has some good examples for the reformulation of other models (extremum estimators) as GMM.

@josef-pkt
Copy link
Member Author

maxiter=0, I need to check unit tests whether maxiter=0 does the same as maxiter=1, unittests distinguish between onestep (maxiter=0 OLS equivalent) and oneiter (maxiter=1)

maxiter=0 might mean not to update weights (cov of moment conditions) for cov_params

need documentation since I don't remember

@josef-pkt josef-pkt modified the milestones: 0.8, 0.9 Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant