Skip to content

ENH: score/Lagrange Multiplier test for GMM #2637

Open

Description

@josef-pkt

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)

Activity

  1. added this to the 0.8 milestone on Oct 3, 2015
  2. josef-pkt commented on Oct 4, 2015

    @josef-pkt
    MemberAuthor

    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.

  3. josef-pkt commented on Oct 8, 2015

    @josef-pkt
    MemberAuthor

    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

  4. modified the milestones: 0.8, 0.9 on Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions