Generalized Estimating Equations

geeclustered-datacorrelated-binarylongitudinal-datarandom-effectspanel-data

Definition

Generalized Estimating Equations (GEE) is a semiparametric method for regression analysis of clustered or longitudinal data in which observations within a cluster are correlated. Introduced by Liang and Zeger (1986), GEE extends the generalized linear model (GLM) estimating equation by replacing the independence working assumption with a parametric working correlation structure Ri(α)R_i(\alpha). The regression coefficients β\beta are estimated via quasi-score equations and are consistent regardless of whether Ri(α)R_i(\alpha) is correctly specified; a robust (sandwich) variance estimator corrects for misspecification of the correlation structure.

Key Ideas

How It Works

GEE Algorithm (Liang-Zeger 1986)

Iterate between updating β\beta from the quasi-score equations and updating α\alpha from moment estimators of the within-cluster residual correlations:

  1. Initialize β^\hat\beta from standard GLM (independent working correlation).
  2. Compute Pearson residuals e^ij=(yijμ^ij)/vij1/2\hat{e}_{ij} = (y_{ij} - \hat\mu_{ij})/v_{ij}^{1/2}.
  3. Estimate α^\hat\alpha from e^ij\hat{e}_{ij} using method-of-moments (e.g., α^=1nij<ke^ije^ik\hat\alpha = \frac{1}{n^*}\sum_{i}\sum_{j<k}\hat{e}_{ij}\hat{e}_{ik} for exchangeable RiR_i).
  4. Update Vi=ϕAi1/2Ri(α^)Ai1/2V_i = \phi\, A_i^{1/2} R_i(\hat\alpha) A_i^{1/2} and re-solve β^\hat\beta from the score equations.
  5. Repeat until convergence.

The sandwich variance V^(β^)\hat{V}(\hat\beta) is computed at convergence. Under correct marginal mean specification and mild regularity conditions, n1/2(β^β0)N(0,V0)n^{1/2}(\hat\beta - \beta_0) \to \mathcal{N}(0, V_0) where V0V_0 is the sandwich limit; the robust estimator is consistent regardless of whether Ri(α)R_i(\alpha) is correct.

Common Working Correlation Structures

Conditional Inference

For exchangeable binary data, conditioning on the cluster total yi+=jyijy_{i+} = \sum_j y_{ij} eliminates nuisance cluster effects. The conditional likelihood P(yiyi+)P(y_i | y_{i+}) does not depend on random cluster effects under the quadratic exponential family or when the within-cluster association parameter α\alpha is the only cluster-specific parameter. This approach (Altham 1978; Liang-Zeger-Qaqish 1992) sacrifices efficiency but provides valid inference without specifying the marginal distribution fully.

Goodness of Fit

Standard likelihood-based goodness-of-fit (GOF) statistics (deviance, likelihood ratio) are unavailable for GEE because it specifies only the first two moments, not a full likelihood. Alternatives include: score tests for association parameters α\alpha; permutation-based tests; quasi-likelihood information criteria (QIC, Pan 2001); residual-based diagnostics. This is the main disadvantage of GEE relative to full-likelihood methods (beta-binomial, random-effects logistic).

Why It Matters

Open Questions

Related