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(α). The regression coefficients β are estimated via quasi-score equations and are consistent regardless of whether Ri(α) is correctly specified; a robust (sandwich) variance estimator corrects for misspecification of the correlation structure.
Key Ideas
- Working correlation matrix: The working covariance for cluster i is Vi=ϕAi1/2Ri(α)Ai1/2, where Ai=diag(νij) contains the marginal variance functions, ϕ is a dispersion parameter, and Ri(α) is the working correlation (exchangeable, AR-1, unstructured, or independent).
- GEE estimating equations: ∑iDi′Vi−1(yi−μi)=0, where Di=∂μi/∂β. With independent working correlation this reduces to standard GLM; with other choices it exploits within-cluster correlation to gain efficiency.
- Robust sandwich variance: V^(β^)=M−1B^M−1 where M=∑iDi′Vi−1Di and B^=∑iDi′Vi−1e^ie^i′Vi−1Di (residual outer products). Consistency of V^ requires only correct specification of the marginal mean model, not of the correlation structure.
- Marginal vs. cluster-specific coefficients: For nonlinear link functions (e.g., logit), the GEE β has a population-average (marginal) interpretation, while random-effects coefficients βre have a cluster-specific (subject-specific) interpretation. The two differ in magnitude (∣βre∣>∣βmarg∣ for logistic link); for linear links they coincide.
- GEE2 (Prentice 1988): Extension that jointly models the first moment (means) and second moment (pairwise correlations) via separate estimating equations for β and α; more efficient than standard GEE when correlation parameters are of substantive interest, but less robust.
- The four model families for clustered binary data (Pendergast et al. 1996): (1) naive/response-feature (ignores correlation), (2) conditionally specified (auto-logistic, Rosner beta-binomial, quadratic exponential), (3) marginal/GEE, (4) cluster-specific/random effects.
How It Works
GEE Algorithm (Liang-Zeger 1986)
Iterate between updating β from the quasi-score equations and updating α from moment estimators of the within-cluster residual correlations:
- Initialize β^ from standard GLM (independent working correlation).
- Compute Pearson residuals e^ij=(yij−μ^ij)/vij1/2.
- Estimate α^ from e^ij using method-of-moments (e.g., α^=n∗1∑i∑j<ke^ije^ik for exchangeable Ri).
- Update Vi=ϕAi1/2Ri(α^)Ai1/2 and re-solve β^ from the score equations.
- Repeat until convergence.
The sandwich variance V^(β^) is computed at convergence. Under correct marginal mean specification and mild regularity conditions, n1/2(β^−β0)→N(0,V0) where V0 is the sandwich limit; the robust estimator is consistent regardless of whether Ri(α) is correct.
Common Working Correlation Structures
- Independence: Ri=I (standard GLM; consistent but inefficient when correlation exists).
- Exchangeable: Ri,jk=ρ for j=k; appropriate when within-cluster units are exchangeable (e.g., family members, eyes of the same patient).
- AR-1 (first-order autoregressive): Ri,jk=ρ∣j−k∣; appropriate for longitudinal data with time-ordered observations.
- Unstructured: Ri,jk estimated freely for all (j,k); requires large clusters, many parameters.
Conditional Inference
For exchangeable binary data, conditioning on the cluster total yi+=∑jyij eliminates nuisance cluster effects. The conditional likelihood P(yi∣yi+) does not depend on random cluster effects under the quadratic exponential family or when the within-cluster association parameter α 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 α; 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
- Provides consistent regression coefficient estimates for clustered binary or count data without specifying a full joint distribution — only the marginal mean model must be correct.
- The sandwich estimator is the standard reference for inference in clustered data in biostatistics and clinical trials; it underlies cluster-robust standard errors (SEs) in panel econometrics.
- The marginal/cluster-specific distinction is fundamental: population-average effects (GEE) answer "what is the average treatment effect?" while cluster-specific effects (random effects) answer "what is the effect for a specific individual?"
- Widely used in clinical trials with cluster randomization, ophthalmological studies (bilateral data), longitudinal surveys, and familial aggregation studies.
Open Questions
- Efficiency of GEE relative to correctly specified parametric models; choice of working correlation structure affects efficiency but not consistency.
- Small-cluster asymptotics: sandwich SE is biased in finite samples with few clusters; corrections (Mancl-DeRouen 2001; Pan-Wall 2002) improve finite-sample coverage.
- Model selection for the working correlation structure remains informal; QIC and related criteria provide one approach but are not widely validated.
- Bayesian GEE extensions (Schildcrout-Heagerty 2005) introduce prior information on α but lack full posterior coherence.
Related