Skip to content

Methods · Regression · Instrumental variables and GMM

Generalized Method of Moments with Selectable Moment Conditions

Generalized method of moments chooses parameters so that sample averages of instrument-by-residual products are as close to zero as possible in a weighted metric. This version offers four residual forms (linear, additive and multiplicative exponential, logistic), one-step, two-step or iterated weighting, and unadjusted, robust, cluster or HAC weight matrices, with Hansen's J test of overidentifying restrictions.

일반화 적률법은 도구변수와 잔차를 곱한 표본평균이 가중 거리로 0에 가장 가깝도록 모수를 고릅니다. 이 방법은 선형, 가법 지수, 승법 지수, 로지스틱의 네 가지 잔차 형태와 1단계, 2단계, 반복 가중, 그리고 비조정, 강건, 군집, HAC 가중행렬을 제공하며 과대식별 제약에 대한 Hansen J 검정을 함께 냅니다.

My outcome is a count and one regressor is endogenous; I have two instruments. How do I estimate an exponential-mean model consistently and check the instruments?

결과가 횟수이고 설명변수 하나가 내생적일 때, 지수 평균 모형을 일관되게 추정하고 도구변수의 타당성을 점검하려면 어떻게 합니까?

The method solves the chosen moment conditions with instruments, reports coefficients with sandwich standard errors for the selected weight matrix, the GMM criterion and, when overidentified, Hansen's J statistic with its p-value.

When to use Generalized Method of Moments with Selectable Moment Conditions

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Two-step GMM with exponential multiplicative moments ([L] moments, [K] parameters, robust weights) gave a coefficient of [value] (SE = [value]) for [regressor]; Hansen's J([df]) = [value], p = [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with linearmodels and statsmodels at a stated tolerance of 1e-4.

    독립 계산. linearmodels·statsmodels 대조 참조 시험 1건 통과(허용오차 1e-4).

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Generalized Method of Moments with Selectable Moment Conditions on Quorant

Data you need
a table (CSV or Excel) with an outcome variable and predictor (feature) columns
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q21163 · Reviewed 2026-10-25