HansenJTest
HansenJTest, commonly referred to as Hansen's J test, is a statistical test used in econometrics to assess the validity of instruments in generalized method of moments (GMM) estimation. Named for Lars Peter Hansen, the test evaluates whether the overidentifying restrictions implied by the instruments hold in the population.
In a GMM framework, the estimator uses moment conditions E[g(Z, theta)]=0. The Hansen J statistic measures departure
Interpretation of the test is straightforward: a large J statistic leads to rejection of the null, suggesting
Variants and related concepts include the Sargan test, a special case that assumes homoskedasticity and uses
Implementation is common after IV or GMM estimation, including applications following 2SLS or more general GMM