← All posts

Choosing GEE Correlation aka. Repeated Measures: ind = Independence, exc = exchangeable, ar1 = Autoregressive Order 1, sta1 = Stationary m-dependent (m=1), uns = Unstructured

Clinical Epidemiology ResearchUniqcret doctor knowledgesData Analytics or Statistics
On this page

Marginal Model-Based Correlation Structures in GEE (Generalized Estimating Equations)

Marginal models (via GEE) assume correlated outcomes within subjects/clusters and require specification of a "working correlation structure".

While coefficient estimates (β) are consistent regardless of structure, the efficiency of SE estimates depends heavily on choosing an appropriate correlation form.


🚫 ind — Independent

Conclusion: Do not use ind if you're modeling intra-subject dependency — it contradicts the purpose of GEE in this context.


✅ exchangeable — Compound Symmetry (CS)

xtgee y x1 x2, family(gaussian) link(identity) corr(exchangeable) i(id) vce(robust)

Advantage: Efficient if assumption holds; still robust if not (with vce(robust))


✅ ar1 — Autoregressive Order 1

xtgee y x1 x2, family(gaussian) link(identity) corr(ar1) i(id) vce(robust)

Warning: Requires proper time index and spacing — not for irregular intervals


✅ sta1 — Stationary m-dependent (m=1)

xtgee y x1 x2, family(gaussian) link(identity) corr(sta1) i(id) vce(robust)

Note: Underused but powerful in short, dense, equally spaced panels


✅ uns — Unstructured

xtgee y x1 x2, family(gaussian) link(identity) corr(uns) i(id) vce(robust)

Caution: Fails or overfits with sparse/imbalanced data. Huge computational cost.


🧭 Summary Table: GEE Correlation Structures for Clinical Repeated Measures

StructureMeaningWhen to UseKey AssumptionsStata corr()Caution
indIndependenceNever (for repeated measures)No correlationindependentViolates longitudinal logic
exchangeableEqual correlationIrregular, short, balanced repsConstant ρ across all timepointsexchangeableAssumption fails with decaying correlation
ar1Decaying (lag-based)Equally spaced, ordered timepointsCorr decays exponentially by lagar1Invalid for irregular timepoints
sta1Neighbor correlation onlyVery short panel, e.g., hourly or closely spacedCorr only among adjacent timepointssta1Rarely used, underdocumented
unsFully unstructuredVery large N + many repeated measuresNo assumptionunsOverfits unless data is massive

💡 Clinical Decision Logic


Correlation Matrix Simulation — GEE Working Correlation Structures

Data: Repeated measures on 5 time points (T1–T5)

🔴 corr(independent)

Assumes no within-subject correlation (ρ = 0) — each time point is independent.

 T1T2T3T4T5
T11.000.000.000.000.00
T20.001.000.000.000.00
T30.000.001.000.000.00
T40.000.000.001.000.00
T50.000.000.000.001.00

🟢 corr(exchangeable)

Assumes constant correlation between all pairs (ρ = 0.80)

 T1T2T3T4T5
T11.000.800.800.800.80
T20.801.000.800.800.80
T30.800.801.000.800.80
T40.800.800.801.000.80
T50.800.800.800.801.00

🟡 corr(ar1)

Assumes correlation decays by lag (ρ = 0.90, then ρ² = 0.81, ρ³ = 0.73…)

 T1T2T3T4T5
T11.000.900.810.730.66
T20.901.000.900.810.73
T30.810.901.000.900.81
T40.730.810.901.000.90
T50.660.730.810.901.00

🔵 corr(sta1)

Only adjacent timepoints are correlated (lag-1), ρ = 0.80

 T1T2T3T4T5
T11.000.800.000.000.00
T20.801.000.800.000.00
T30.000.801.000.800.00
T40.000.000.801.000.80
T50.000.000.000.801.00

🟣 corr(uns)

No assumptions — each pair has its own unique correlation

 T1T2T3T4T5
T11.000.860.740.550.33
T20.861.000.710.490.40
T30.740.711.000.690.50
T40.550.490.691.000.66
T50.330.400.500.661.00
0
Message for International and Thai ReadersUnderstanding My Medical Context in ThailandRead more →Message for International and Thai ReadersUnderstanding My Broader Content Beyond MedicineRead more →

Comments

No comments yet. Be the first to share your thoughts.

Sign in to comment