Tutorials › Generalized Linear Models › Estimating Response Weights for GEE

GEE Inference and Limitations · Tutorial 891 of 981

Estimating Response Weights for GEE

Build and diagnose estimated response weights for GEE, including the consequences of small response probabilities, truncation, and treating fitted weights as known.

Advanced 10 min read

What You'll Learn

  • Specify sequential response-probability models using baseline covariates and prior observed outcomes
  • Calculate cumulative inverse-probability and stabilized weights from fitted probabilities
  • State the positivity condition and understand how it bounds inverse-probability weights
  • Quantify how truncating extreme weights can change a weighted estimating equation
  • Account for the uncertainty introduced by estimating response probabilities

Why Estimate Response Weights?

In a longitudinal study, participants may stop providing outcomes before the study ends. If the probability of remaining observed depends on measured covariates or earlier outcomes, analyzing only observed responses can distort the estimating equation for the marginal mean. Inverse-probability weighting addresses this by giving more influence to observed records that represent records with similar histories but a lower chance of being observed.

The weights depend on response probabilities, which are usually unknown. They must therefore be estimated from the observed study data. This tutorial focuses on specifying those models, calculating the resulting weights, and assessing their stability and uncertainty. The central tradeoff is that a response model rich enough to account for observed predictors of missingness can also produce very small fitted probabilities and highly variable weights.

Sequential Response Probabilities

Let \(i=1,\ldots,n\) index independent clusters and \(t=1,\ldots,T\) index occasions. Write \(R_{it}=1\) if the outcome at occasion \(t\) is observed and \(R_{it}=0\) otherwise. For monotone dropout, a participant observed at \(t\) must have been observed at every earlier occasion. Let \(H_{it}\) denote the information available just before the response at \(t\) is determined, such as baseline covariates, time, and previously observed outcomes.

Definition: The sequential response probability is \(q_{it}=P(R_{it}=1\mid R_{i,t-1}=1,H_{it})\), the probability of being observed at occasion \(t\) among participants still observed through \(t-1\). The cumulative response probability is \(\pi_{it}=\prod_{s=1}^{t}q_{is}\). For an observed outcome at \(t\), the unstabilized inverse-probability weight is \(W_{it}=1/\pi_{it}\).

At the first occasion, the conditioning on prior response is omitted. A common approach estimates each \(q_{it}\) using a logistic regression fitted among participants at risk of dropping out at that occasion. For example, a denominator model may be \( \operatorname{logit}(q_{it})=\alpha_0+\alpha_1 t+\alpha_2^\mathsf{T}X_i+\alpha_3Y_{i,t-1} \), where \(X_i\) contains baseline covariates and \(Y_{i,t-1}\) is included only when it is observed and appropriate to the response history. The model must use only information available by the time response is determined; using an unobserved future outcome as a predictor is not a valid response-probability model.

A stabilized weight replaces the probability one in the numerator with a less history-dependent numerator probability. For example, let \(a_{it}=P(R_{it}=1\mid R_{i,t-1}=1,X_i,t)\), where the numerator conditions on baseline covariates and time but not on prior outcomes. Then \( SW_{it}=\prod_{s=1}^{t}a_{is}/q_{is} \). Both numerator and denominator probabilities are estimated, typically by fitting corresponding logistic regressions in the relevant risk sets. Stabilization can reduce variability, but it does not automatically guarantee the same estimating target for every weighted GEE. The numerator model and the variables in the estimating equation must be chosen so that the intended estimand is preserved. When that condition is not established, the unstabilized weight provides the clearest inverse-probability identity.

Worked Example: Calculating a Stabilized Weight

Suppose a participant is observed at both occasions. The fitted denominator probabilities are \(q_{i1}=0.90\) and \(q_{i2}=0.60\), where the second probability conditions on the observed first outcome and baseline covariates. The fitted numerator probabilities are \(a_{i1}=0.95\) and \(a_{i2}=0.70\), conditional on baseline covariates and time.

The cumulative denominator probability through occasion 2 is \( \hat{\pi}_{i2}=0.90(0.60)=0.54 \). Thus the unstabilized inverse-probability weight for the occasion-2 response is \( \hat{W}_{i2}=1/0.54=1.8519 \) (to four decimal places).

The cumulative numerator probability is \(0.95(0.70)=0.665\). The stabilized weight is therefore \( \widehat{SW}_{i2}=0.665/0.54=1.2315 \) (to four decimal places).

The multiplication across occasions is essential: the occasion-2 response is observed only if the participant remains observed at both occasions. A weight based only on \(q_{i2}\), such as \(1/0.60\), would ignore the chance of being lost at occasion 1.

What the Inverse-Probability Identity Requires

The basic justification for unstabilized response weights is a conditional expectation identity. It requires a correctly specified response mechanism given the recorded history and positivity: every relevant history must have a nonzero chance of remaining observed. The identity does not assert that the response model is known; it describes what the true probabilities would accomplish.

Theorem: Suppose response is monotone, the sequential response mechanism is conditionally independent of future outcomes given the observed history (the sequential missing-at-random condition), and \(q_{is}>0\) for all relevant histories through occasion \(t\). If \(\pi_{it}=\prod_{s=1}^t q_{is}\), then for every integrable function \(g_i\) of the complete data, \( E\!\left[R_{it}g_i/\pi_{it}\mid X_i,Y_i\right]=g_i \), where \(Y_i\) denotes the complete outcome vector.

Proof. Conditional on the complete covariates and outcomes, the probability of remaining observed through \(t\) is the product of the sequential retention probabilities. Under the stated sequential missing-at-random condition, each factor is the probability \(q_{is}\) evaluated at the history that would be observed along the retained path. Hence \( E[R_{it}\mid X_i,Y_i]=P(R_{it}=1\mid X_i,Y_i)=\prod_{s=1}^{t}q_{is}=\pi_{it} \). Because \(\pi_{it}\) is positive and \(g_i\) is fixed when conditioning on complete data, \( E[R_{it}g_i/\pi_{it}\mid X_i,Y_i]=g_i E[R_{it}\mid X_i,Y_i]/\pi_{it}=g_i \). This proves the identity. \(\square\)

Taking expectations on both sides gives \(E[R_{it}g_i/\pi_{it}]=E[g_i]\). In a GEE, \(g_i\) can represent a complete-data estimating contribution, so the identity explains why correct inverse response probabilities can recover the expectation of a contribution that would have been available under complete observation. It does not ensure that a fitted finite-sample weighted equation is stable, or that a misspecified response model will work.

Worked Example: Positivity and a Large Weight

At one occasion, consider two equally common histories. The first history has response probability \(0.90\), while the second has response probability \(0.10\). Their unstabilized weights, if observed, are \(1/0.90=1.1111\) and \(1/0.10=10\), respectively.

The second history is not a violation of positivity: its response probability is positive. But it contributes a much larger weight whenever it is observed. If the second probability were zero, no observed record could represent that history, and inverse weighting could not recover its contribution from the data. Positivity is therefore not just a computational convenience; it is necessary for the identity above.

More generally, if all sequential probabilities through \(t\) satisfy \(q_{is}\geq\epsilon>0\), then \( \pi_{it}=\prod_{s=1}^{t}q_{is}\geq\epsilon^t \), so \(1/\pi_{it}\leq\epsilon^{-t}\). The bound worsens with follow-up length even when each individual response probability is bounded away from zero.

Positivity, Truncation, and the Cost of Extreme Weights

A fitted response probability near zero creates a large inverse weight. Such observations can dominate the weighted estimating equation, increase variance, and make estimates sensitive to small changes in the response model. Inspect the fitted probability distributions by occasion and by relevant histories, along with the weight distribution, its maximum, and the fraction of total weight carried by the largest observations. A high average response rate does not rule out a serious problem in a small subgroup.

One practical response is to truncate weights, for example by replacing weights above a chosen cutoff \(c\) with \(c\), or by capping weights at selected empirical quantiles. This can lower variance, but it changes the estimating equation. The following calculation shows that it can also move the estimate away from the complete-data mean.

Worked Example: How Truncation Changes a Weighted Mean

Suppose a population consists of two equally common groups. Their outcome means are 0 and 10. The response probabilities are 0.90 for the first group and 0.10 for the second. The true population mean is \(0.5(0)+0.5(10)=5\).

The raw inverse response weights are \(1/0.90=1.1111\) and \(1/0.10=10\). With these weights, the expected weighted numerator per population member is \(0.5(0.90)(1.1111)(0)+0.5(0.10)(10)(10)=5\). The expected weighted denominator is \(0.5(0.90)(1.1111)+0.5(0.10)(10)=0.5+0.5=1\). Their ratio is \(5/1=5\), the population mean.

Now cap weights at 5. The first group keeps weight 1.1111 and the second group receives weight 5 instead of 10. The expected weighted numerator is \(0.5(0.90)(1.1111)(0)+0.5(0.10)(5)(10)=2.5\). The expected weighted denominator is \(0.5(0.90)(1.1111)+0.5(0.10)(5)=0.5+0.25=0.75\) (approximately). Thus the truncated-weight ratio is \(2.5/0.75=3.333\) (approximately), not 5. Truncation has reduced the influence of the sparsely observed group, but has also changed the target of this weighted mean.

A truncation rule should therefore be reported and justified, and the analysis should be compared with results under reasonable alternative cutoffs and without truncation when numerically feasible. Truncation cannot repair a true positivity failure: it limits the numerical influence of the observed records but cannot create information about histories that are never observed.

Uncertainty From Estimated Weights

The response probabilities are estimated from the same study, so the weights are random. Treating them as fixed when calculating uncertainty can omit variation due to fitting the response models. This matters especially when response probabilities are weakly estimated, when some probabilities are small, or when the number of independent clusters is modest.

One route to valid large-sample uncertainty is to regard the outcome-model parameter and response-model parameters as a joint system of estimating equations. If \(\gamma\) denotes the response-model parameters and \(\beta\) the GEE parameter, write the combined equations schematically as \( \sum_i \begin{pmatrix} s_i(\gamma) \\ u_i(\beta,\gamma) \end{pmatrix}=0 \), where \(s_i\) is the response-model score contribution and \(u_i\) is the weighted GEE contribution. A sandwich covariance for this joint system accounts for the fact that estimated \(\gamma\) enters the weights. Its validity requires independent clusters, suitable model regularity and identification, and a correctly specified response model for the weighting argument.

A cluster bootstrap is another practical approach: resample whole clusters, refit every response model in each replicate, recalculate the weights, and refit the weighted GEE. Resampling individual occasions would break within-cluster dependence and would fail to reproduce the analysis. Bootstrap replicates with separation, extreme fitted probabilities, or failed model fits should be monitored rather than silently discarded.

Worked Example: A First-Order Check on Weight Uncertainty

At a particular history, suppose the fitted response probability is \(q=\operatorname{expit}(\eta)=0.50\), where \(\eta=x^\mathsf{T}\gamma\), and the estimated linear predictor has standard error \(0.20\). The inverse weight is \(w=1/q=2\).

Since \(q=\operatorname{expit}(\eta)\), its derivative is \(dq/d\eta=q(1-q)\). Therefore \( \frac{dw}{d\eta}=-\frac{1}{q^2}\frac{dq}{d\eta}=-\frac{1-q}{q}=-1 \) at \(q=0.50\). A first-order delta-method approximation gives \( \operatorname{Var}(\hat w)\approx (dw/d\eta)^2\operatorname{Var}(\hat\eta)=1^2(0.20^2)=0.04 \), so the approximate standard error of the fitted weight is \(0.20\).

This calculation covers only the local uncertainty in one fitted weight; it is not the standard error of the final GEE coefficient. It illustrates why a weight computed from estimated probabilities should not automatically be treated as known. The joint sandwich or cluster bootstrap carries this uncertainty through to the final estimate.

Common Mistakes

  • Using only the current-occasion probability. For a response at \(t\), the cumulative probability includes retention at every earlier occasion. Use the product through \(t\).
  • Putting unavailable information in the response model. Predictors must be observed by the point at which response is determined. A future or currently missing outcome cannot be used as if it were observed history.
  • Assuming stabilization is harmless by definition. A numerator depending on baseline variables can affect the weighted estimating equation. Establish that the numerator and outcome equation preserve the intended estimand.
  • Treating truncation as a fix for absent support. Capping weights can trade variance for bias; it cannot recover outcomes from a history with zero response probability.
  • Ignoring the fitted weight model in inference. Estimated probabilities add uncertainty. Refit the response models in a cluster bootstrap or account for their estimating equations in a joint sandwich calculation.

The practical goal is not simply to obtain weights with a convenient range. Specify the response history carefully, check that fitted probabilities are plausible and bounded away from zero in relevant strata, and assess how sensitive the GEE is to model choices and any truncation. Report the response models and the weight diagnostics so readers can see what information supports the weighted estimate.

Check Your Understanding

Try these questions without looking back.

  1. For monotone dropout, why is the probability of being observed at occasion 3 a product of sequential probabilities rather than just the occasion-3 probability?
  2. Suppose two response probabilities through occasion 2 are \(0.8\) and \(0.5\). Calculate the cumulative response probability and unstabilized weight.
  3. State the positivity condition in words and explain what goes wrong when a relevant history has response probability zero.
  4. In the truncation example, why does capping the second group’s weight at 5 change the weighted mean?
  5. What must be repeated within each cluster-bootstrap replicate when response weights are estimated?
Clinical Biostats