Tutorials › Marginal Structural Models › Overidentified G-Estimation and Optimal Instruments

Structural Nested Models and g-Estimation · Tutorial 337 of 501

Overidentified G-Estimation and Optimal Instruments

See how to combine multiple valid g-estimation moments and choose weights that use their information efficiently.

Advanced 12 min read

What You'll Learn

  • Define multiple treatment-history moments for an SNMM blipped-down outcome.
  • State the conditions that make each instrument moment valid.
  • Form an overidentified GMM estimator from a vector of g-estimating equations.
  • Derive the precision-optimal combination of scalar moments.
  • Compare identity weighting with covariance-aware optimal weighting using verified calculations.
  • Recognize redundancy, weak information, and nuisance-estimation issues that can undermine gains.

Why Use More Than One G-Estimating Moment?

In g-estimation, a candidate blip parameter transforms the observed outcome into a blipped-down outcome. At the true parameter, treatment residuals multiplied by that transformed outcome have mean zero under the identifying assumptions. A single valid moment can identify a scalar parameter, but a history may supply several valid functions of treatment and covariate history. Each gives another moment condition. The resulting system is overidentified when it has more moment equations than unknown parameters.

Having more equations does not mean that all should be treated as equally informative. Moments may be correlated, have different variability, or carry very different amounts of information about the blip parameter. Generalized method of moments (GMM) combines them using a weighting matrix. With suitable assumptions, a covariance-aware choice improves precision compared with an arbitrary combination.

Definition: Let \(U_t(\psi)\) denote the outcome blipped down at treatment time \(t\) under candidate parameter \(\psi\), and let \(H_t\) be the observed history available immediately before \(A_t\). Write \(p_t(H_t)=P(A_t=1\mid H_t)\) for a binary treatment and \(R_t=A_t-p_t(H_t)\). A treatment-history instrument \(q(H_t)\) is a measurable function of that history. A corresponding g-estimating moment has the form \(m(O,\psi)=q(H_t)R_tU_t(\psi)\). Several choices of \(q\), or choices associated with different treatment times, give a vector \(m(O,\psi)\) of moments.

These moments are valid at the true parameter \(\psi_0\) when the structural nested model is correctly specified and the identifying assumptions imply that \(U_t(\psi_0)\) is conditionally mean-independent of \(A_t\) given \(H_t\). Sequential exchangeability is one standard condition used to obtain that implication. Consistency and positivity are also required for the relevant treatment histories. In addition, the moments must have finite second moments for covariance-based weighting, and the moments must distinguish the parameter values being estimated.

From Valid Moments to an Overidentified Estimator

For independent observations \(O_1,\ldots,O_n\), let \(m(O_i,\psi)\) be an \(r\)-vector of moment functions and define its sample average by \(\bar m_n(\psi)=n^{-1}\sum_{i=1}^n m(O_i,\psi)\). If \(\psi\) has \(p\) components and \(r>p\), the sample equations \(\bar m_n(\psi)=0\) will generally have no exact solution. GMM instead selects the parameter that makes the moment vector small under a chosen positive-definite weighting matrix \(W\):

$$ \hat\psi_W=\arg\min_{\psi}\ \bar m_n(\psi)^\mathsf{T}W\bar m_n(\psi). $$

The identity matrix weights moment coordinates equally, but equal coordinate weights are not generally equal information weights: the coordinates can have different scales and covariance. The population moment covariance is \(\Omega=E[m(O,\psi_0)m(O,\psi_0)^\mathsf{T}]\), since \(E[m(O,\psi_0)]=0\). The key optimal choice is \(W=\Omega^{-1}\), when \(\Omega\) is finite and nonsingular. The next derivation explains both what that choice means and why it is optimal.

Theorem: Suppose \(\psi\) is scalar, \(D=E[\partial m(O,\psi_0)/\partial\psi]\) is an \(r\)-vector, and \(\Omega\) is positive definite. Assume the moment mean is differentiable at \(\psi_0\), \(D\ne0\), and the sample moment has the usual central limit behavior with covariance \(\Omega\). The selected solution \(\hat\psi\) must be consistent for \(\psi_0\) and satisfy the local sample-moment expansion \(\bar m_n(\hat\psi)=\bar m_n(\psi_0)+D(\hat\psi-\psi_0)+o_p(n^{-1/2})\), which can be justified under suitable local uniform convergence and stochastic equicontinuity conditions. For a fixed vector \(a\) with \(a^\mathsf{T}D\ne0\), such a solution of \(a^\mathsf{T}\bar m_n(\psi)=0\) has first-order variance factor \(a^\mathsf{T}\Omega a/(a^\mathsf{T}D)^2\). This factor is minimized by \(a\) proportional to \(\Omega^{-1}D\), and its minimum is \(1/(D^\mathsf{T}\Omega^{-1}D)\).

To derive the variance factor, expand the sample equation around \(\psi_0\). Differentiability gives \(\bar m_n(\hat\psi)=\bar m_n(\psi_0)+D(\hat\psi-\psi_0)+o_p(n^{-1/2})\) for a consistent regular solution. Multiplication by \(a^\mathsf{T}\), followed by solving for the parameter difference, yields

$$ \sqrt n(\hat\psi-\psi_0) = -\frac{a^\mathsf{T}\sqrt n\,\bar m_n(\psi_0)}{a^\mathsf{T}D}+o_p(1). $$

The central limit theorem gives covariance \(\Omega\) for \(\sqrt n\,\bar m_n(\psi_0)\). Thus the leading variance of \(\sqrt n(\hat\psi-\psi_0)\) is the stated factor. For the minimization, use the inner product \(\langle x,y\rangle_\Omega=x^\mathsf{T}\Omega y\). Cauchy–Schwarz applied to \(\Omega^{1/2}a\) and \(\Omega^{-1/2}D\) gives

$$ (a^\mathsf{T}D)^2 \leq (a^\mathsf{T}\Omega a)(D^\mathsf{T}\Omega^{-1}D). $$

Rearranging proves the lower bound \(a^\mathsf{T}\Omega a/(a^\mathsf{T}D)^2\geq1/(D^\mathsf{T}\Omega^{-1}D)\). Equality holds when \(\Omega^{1/2}a\) is proportional to \(\Omega^{-1/2}D\), or \(a\) is proportional to \(\Omega^{-1}D\). This proves the optimal-combination claim. \(\square\)

For a vector parameter, write \(D=E[\partial m(O,\psi_0)/\partial\psi^\mathsf{T}]\), an \(r\)-by-\(p\) matrix. Under the corresponding differentiability, rank, and regularity conditions, the GMM criterion with \(W=\Omega^{-1}\) has first-order covariance matrix \((D^\mathsf{T}\Omega^{-1}D)^{-1}\) for \(\sqrt n(\hat\psi-\psi_0)\). This follows by linearizing the criterion’s first-order condition: its leading parameter change is \(-(D^\mathsf{T}WD)^{-1}D^\mathsf{T}W\sqrt n\,\bar m_n(\psi_0)\). Substituting \(W=\Omega^{-1}\) gives the stated covariance. These formulas describe large-sample precision, not a guarantee of better finite-sample behavior.

Worked Examples

Worked Example: Correcting for Correlated, Unequally Noisy Moments

Suppose two valid moments estimate a scalar parameter, with derivative vector \(D=(1,1)^\mathsf{T}\) and covariance matrix

$$ \Omega= \begin{pmatrix} 1 & 0.5\\ 0.5 & 4 \end{pmatrix}. $$

The determinant is \(1(4)-0.5^2=3.75>0\), so this covariance matrix is positive definite. If we give the two moments equal normalized weight, \(a=(0.5,0.5)^\mathsf{T}\), then \(a^\mathsf{T}D=1\). Its variance factor is

$$ a^\mathsf{T}\Omega a =0.5^2(1)+2(0.5)(0.5)(0.5)+0.5^2(4) =0.25+0.25+1 =1.5. $$

For optimal weighting, calculate

$$ \Omega^{-1} = \frac{1}{3.75} \begin{pmatrix} 4 & -0.5\\ -0.5 & 1 \end{pmatrix}, \qquad \Omega^{-1}D = \frac{1}{3.75} \begin{pmatrix} 3.5\\ 0.5 \end{pmatrix}. $$

The entries of \(\Omega^{-1}D\) sum to \(4/3.75\), so the normalized optimal combination is \(a=(0.875,0.125)^\mathsf{T}\). Its derivative is still one. Directly, \(\Omega a=(0.9375,0.9375)^\mathsf{T}\), and therefore \(a^\mathsf{T}\Omega a=0.9375\). Equivalently, \(D^\mathsf{T}\Omega^{-1}D=4/3.75=16/15\), whose reciprocal is \(15/16=0.9375\). The identity-weighted factor, \(1.5\), is larger. The less variable first moment receives most of the weight, while the covariance is accounted for rather than ignored.

Worked Example: Checking Two Treatment-History Moments

Let \(H\) be binary with \(P(H=0)=P(H=1)=1/2\). Given \(H\), treatment \(A\) is Bernoulli with \(p(H)=1/4\) when \(H=0\) and \(p(H)=3/4\) when \(H=1\). Suppose the true blipped-down outcome is \(U=H+\varepsilon\), where \(\varepsilon\) is independent of \(A,H\), has mean zero and variance one. Set \(R=A-p(H)\) and use \(q_1(H)=1\), \(q_2(H)=H\).

Conditional on either history, \(E[R\mid H]=0\), and \(U\) is independent of \(A\) given \(H\). Hence \(E[q_j(H)RU\mid H]=q_j(H)E[R\mid H]E[U\mid H]=0\) for both moments; averaging over \(H\) gives \(E[q_j(H)RU]=0\). Thus both instruments yield valid population moments in this specified example.

Their covariance matrix can also be checked. Since \(E[R^2\mid H]=p(H)\{1-p(H)\}=3/16\) in both groups, and \(E[U^2\mid H=0]=1\), \(E[U^2\mid H=1]=2\), the entries for \(m_1=RU\) and \(m_2=HRU\) are

$$ \Omega_{11}=E[R^2U^2] =\tfrac12(\tfrac{3}{16}\cdot1)+\tfrac12(\tfrac{3}{16}\cdot2) =\tfrac{9}{32}, \quad \Omega_{12}=E[HR^2U^2]=\tfrac{3}{16}, \quad \Omega_{22}=E[H^2R^2U^2]=\tfrac{3}{16}. $$

The determinant is \((9/32)(3/16)-(3/16)^2=9/512>0\), so the two moments are not exact linear duplicates in this population. That fact alone does not guarantee that both contribute much information about a particular blip parameter: their derivatives with respect to that parameter also matter.

Worked Example: A Valid but Weak Additional Moment

Suppose two uncorrelated valid moments for a scalar parameter have covariance matrix \(\Omega=\operatorname{diag}(1,4)\) and derivative vector \(D=(1,0.2)^\mathsf{T}\). The second moment is less informative in this setup: its variance is 4 and its derivative is only 0.2. The information quantity is

$$ D^\mathsf{T}\Omega^{-1}D =1^2+\frac{0.2^2}{4} =1+0.01 =1.01. $$

The optimal variance factor is \(1/1.01=100/101\), approximately \(0.9901\), compared with factor \(1\) from the first moment alone. The normalized optimal weights are proportional to \(\Omega^{-1}D=(1,0.05)^\mathsf{T}\), so they are \((1/1.05,0.05/1.05)^\mathsf{T}\). The extra moment gives a small theoretical gain, not a dramatic one. If its derivative were zero and it were uncorrelated with the informative moments, it would add no information for this parameter; otherwise, it can affect precision through its covariance with them.

Choosing Weights and Recognizing Failure Modes

The optimality result is a statement within a correctly specified moment model. It does not make an invalid instrument valid. It also assumes that the covariance matrix and parameter sensitivity are appropriately represented. In practice, \(\Omega\) is usually estimated, and the weight matrix may be formed from preliminary estimates. If a propensity or other nuisance model is estimated, the relevant large-sample covariance must account for that estimation; using a covariance formula as if the nuisance quantities were known can give incorrect weights and uncertainty calculations. See the earlier material on g-estimation with known and estimated propensities for that distinction.

Several checks help identify problems before interpreting a precision gain:

  • Check the moment definitions. Each instrument must be a function of the appropriate observed history, and the treatment residual must use the conditional treatment probability for that history.
  • Check scale and redundancy. Very different scales can make identity weighting arbitrary. Nearly redundant moments make \(\Omega\) ill-conditioned, so its estimated inverse can be unstable.
  • Check sensitivity. Compare estimates under a few sensible weighting choices and inspect whether one moment dominates the result. A large change can signal weak information, unstable weights, or moment incompatibility.
  • Separate validity from precision. A moment can have a small estimated variance yet be invalid under the assumed structural model or exchangeability conditions. Optimal weighting cannot repair that failure.

Exactly identified g-estimation uses just enough independent moments to identify the parameter and does not require choosing among excess equations. Overidentified GMM can gain precision by combining additional valid moments. Identity weighting is simple but generally not efficient; inverse-covariance weighting is asymptotically optimal under the stated conditions. In finite samples, estimating and inverting a noisy covariance matrix can erase theoretical gains, especially when many moments are nearly dependent. The later material on asymptotic variance develops uncertainty calculations further; the present comparison concerns how the choice of moments and their weights affects information.

Common pitfall: “There are two valid moments, so averaging them equally must improve precision.” Validity only says their expectations vanish at the true parameter. It says nothing about equal variance, correlation, or parameter sensitivity. In the first example, equal weights give variance factor \(1.5\), whereas covariance-aware optimal weights give \(0.9375\). Calculate the covariance and derivatives before deciding how to combine moments.

Check Your Understanding

Answer each question, then check the short solutions below.

  1. What makes a g-estimating system overidentified, and why may its sample equations have no exact common root?
  2. For scalar \(\psi\), explain what \(D\) and \(\Omega\) represent in the optimal-combination result.
  3. Suppose two uncorrelated moments have derivatives \(D=(1,1)^\mathsf{T}\) and variances 1 and 9. What are the normalized optimal weights and the optimal variance factor?
  4. Why does adding a valid moment with derivative zero fail to improve precision for a scalar parameter when it is uncorrelated with the informative moments?
  5. Name one reason estimated optimal weights may perform poorly in a finite sample.

Solutions. (1) There are more moment equations than unknown parameters; sample averages fluctuate, so the equations need not share a root. GMM minimizes a weighted discrepancy instead. (2) \(D\) is the derivative of the population moment vector with respect to the parameter at the truth; \(\Omega\) is the covariance matrix of the valid moment vector. (3) \(\Omega=\operatorname{diag}(1,9)\), so \(\Omega^{-1}D=(1,1/9)^\mathsf{T}\). Normalizing gives weights \((9/10,1/10)^\mathsf{T}\). The information is \(1+1/9=10/9\), so the variance factor is \(9/10\). (4) The moment adds no derivative information, so it cannot increase \(D^\mathsf{T}\Omega^{-1}D\) when uncorrelated with the informative moments. (5) For example, a nearly singular estimated covariance matrix makes its inverse unstable, or nuisance estimation may be ignored when estimating the covariance.

Clinical Biostats