Concept Architecture
Exchangeable Correlation in GEE and Cluster Randomised Trials
Exchangeable correlation, also called compound symmetry, treats patients in the same general practice, hospital or trial centre as equally alike, with no pair closer than any other. Health economists meet it as a working correlation in generalised estimating equations fitted to cluster randomised trial data, and as the pattern implied by a random intercept in a mixed effects model. Under a random intercept its single parameter equals the intraclass correlation, and the same parameter drives the design effect that inflates sample sizes and standard errors in cluster trials. A wrong choice of structure leaves GEE estimates of incremental costs or QALYs consistent when the mean model is right and data are missing completely at random, but ignoring clustering makes a cost-effectiveness result look more certain than it is.
The exchangeable matrix and its single parameter
The structure describes the correlation among the observations in one cluster with a single number. Every off-diagonal entry is the same, so the order of observations within the cluster carries no information.
where is the working correlation matrix for a cluster of observations, the diagonal entries of 1 are each observation's correlation with itself, and is the common correlation between any two different observations in the cluster. Liang and Zeger set this out as Example 3 of their 1986 paper introducing GEE, with the parameter called , and noted that any number of observations per subject is possible under it, so practices recruiting different numbers of patients pose no problem.
Not every value of gives a valid matrix. The matrix has one eigenvalue equal to and eigenvalues equal to one minus , so it is positive definite only when lies strictly between and 1. For clusters of 20 the lower limit is minus 1/19, about minus 0.053.
In GEE the working correlation is combined with the variance of each observation to give a working covariance matrix, in the form set out by Liang and Zeger.
where is the working covariance matrix for cluster , is the diagonal matrix of variance-function values for the observations in that cluster, and is the scale parameter of the generalised linear model. Mixed model software labels the same pattern compound symmetry, and the SAS documentation describes TYPE=CS as having two unknown parameters, a common covariance and a residual variance.
Random intercepts and the intraclass correlation
The exchangeable pattern is what a random intercept produces. Liang and Zeger describe their Example 3 as the exchangeable correlation structure obtained from a random effects model with a random level for each subject. Writing that model out shows why the parameter is the intraclass correlation.
where is the outcome of patient in cluster , is the vector of covariates with coefficients , is the cluster's random intercept with variance , and is the patient-level error with variance , independent of . Two patients in the same cluster share , so their covariance is , each has variance , and their correlation is as follows.
where is the same for every pair in every cluster, which is exactly the exchangeable form. The CONSORT extension for cluster randomised trials defines this intracluster correlation coefficient as the proportion of the total variance of the outcome that can be explained by the variation between clusters. A random intercept has a variance that cannot be negative, so it only produces , while a marginal exchangeable working correlation can take the small negative values allowed by the eigenvalue limit.
The two routes estimate different things. Rutterford, Copas and Eldridge describe mixed models as cluster-specific and GEE as population-averaged, differing in the interpretation of the treatment effect. For mean costs and QALYs on the identity scale the targets coincide, but odds ratios from a logistic model differ, as the longitudinal texts of Diggle and colleagues and of Fitzmaurice and colleagues explain.
How GEE uses the common correlation
GEE estimates by moments from Pearson residuals pooled across clusters, alternating with updates of the regression coefficients. The variance of those coefficients comes from the sandwich estimator, which puts observed cross-products of residuals within each cluster in place of the unknown true covariance.
where is the number of clusters, is the matrix of derivatives of cluster 's means with respect to the coefficients , is the working covariance above, is the vector of residuals for cluster , and is the model-based term that forms the bread of the sandwich. Liang and Zeger showed that the consistency of the estimates and of this variance depends only on the correct specification of the mean, not on the correct choice of working correlation, and their companion paper in Biometrics gives the result for discrete and continuous outcomes. The protection rests on independence between clusters.
The choice still affects precision. In one of Liang and Zeger's efficiency calculations, independence working equations kept 0.99 of the efficiency of the correctly specified exchangeable analysis when every subject had 10 observations. When the number of observations varied from 1 to 8, the relative efficiency fell to 0.82. Exchangeable weighting pays off when sizes differ.
Exchangeable, independence, AR(1) and unstructured compared
Working structures differ in how correlation changes with distance between observations and in how many parameters they need. For a cluster or patient with observations they compare as follows.
| Structure | Correlation between observations and | Correlation parameters | Plausible when |
|---|---|---|---|
| Independence | 0 | 0 | as a simple GEE working model with sandwich errors |
| Exchangeable | the same for every pair | 1 | patients within practices, wards or centres |
| AR(1) | 1 | repeated visits where correlation fades with time | |
| Unstructured | a free for each pair | few visits and a large sample |
Rutterford and colleagues call the exchangeable assumption common and reasonable for cluster randomised trials, since patients in a practice have no natural order. They add that working independence is simple, can aid convergence, and with equal cluster sizes loses no efficiency against a true exchangeable correlation. For repeated health state utility values or costs from one patient, an exchangeable structure assumes baseline and 12-month values are as closely related as two adjacent visits, which often fails over long follow-up, where correlation that fades with time is more plausible.
The design effect implied by exchangeable correlation
The design effect for a cluster trial follows directly from the exchangeable matrix. The variance of a cluster mean is the sum of all entries of the covariance matrix divided by , and the exchangeable matrix has diagonal entries of 1 and off-diagonal entries of .
where is the mean outcome in a cluster of patients, is the total variance of one patient's outcome, and the bracketed term is the factor by which clustering inflates the variance compared with independent patients. The CONSORT extension gives this inflation factor for clusters of equal size, and notes that is typically small (often below 0.05) but its impact can be considerable if clusters are large.
For unequal cluster sizes, Rutterford and colleagues give design effects for binary outcomes under GEE with exchangeable correlation and under working-independence GEE when the true correlation is exchangeable. Both reduce to this factor when all clusters are the same size.
Worked example with practice-level clustering of costs
All figures in this example are illustrative. A cluster randomised trial of a practice-based service measures 12-month NHS cost per patient. Practices are randomised, 20 per arm with 20 patients each, so 400 patients per arm, and the incremental cost is GBP 200.
Step 1 sets out the variance components. The between-practice variance is 72,000 and the within-practice variance is 1,368,000 (both in GBP squared). The total variance is 1,440,000, a standard deviation of GBP 1,200, and the common correlation is 72,000 / 1,440,000 = 0.05.
Step 2 gives the design effect. With 20 patients per practice it is 1 + 19 × 0.05 = 1.95, and its square root, the factor on standard errors, is 1.396. As a check, the variance of a practice mean is 72,000 + 1,368,000 / 20 = 140,400, the same as 1,440,000 / 20 × 1.95.
Step 3 compares standard errors for the difference in mean cost. Treating the 800 patients as independent gives a variance of 2 × 1,440,000 / 400 = 7,200 and a standard error of GBP 84.85. Allowing for clustering multiplies the variance by 1.95, to 14,040, and the standard error becomes GBP 118.49. The 95% interval for the incremental cost is GBP 33.69 to GBP 366.31 when clustering is ignored, and minus GBP 32.24 to GBP 432.24 when it is allowed for. The effective sample size is 400 / 1.95 = 205.1 per arm.
A correlation of only 0.05 nearly doubles the variance of the incremental cost, and a cost difference that looks clearly positive when clustering is ignored becomes uncertain once it is allowed for. The same inflation passes into incremental net benefit and acceptability curves.
Uses in trial-based economic evaluation
Gomes and colleagues, comparing methods for cost-effectiveness analysis of such trials, found that most studies use methods that ignore clustering. In their case study, mean incremental net benefits were similar across methods, but ignoring clustering underestimated statistical uncertainty and the value of information from further research.
Multi-centre and multinational trials raise the same issue with centres as clusters. Manca and colleagues note that centres and countries often differ in clinical practice, patient case-mix and unit costs, so costs and outcomes can be correlated among patients recruited in the same location, and they use multilevel models to estimate population-average and location-specific cost-effectiveness. A random centre intercept in such a model implies exchangeable correlation within each centre.
Small samples, missing data and other limits
Most problems come from the sandwich variance or from assumptions outside the correlation structure. Four recur in trial-based work.
- Too few clusters. Mancl and DeRouen report that tests using the sandwich covariance estimator can have inflated size with few clusters, up to 2 to 3 times the nominal level in simulations with 10 to 40 subjects, and propose a bias-corrected estimator. Rutterford and colleagues note that with few clusters the mixed model is less biased than GEE, and Gomes and colleagues found GEE interval coverage of 0.841 with 3 clusters per arm and suggest 8 to 15 clusters per arm are needed.
- Missing data. Liang and Zeger require data to be missing completely at random for consistency when the working correlation is wrong, a strong assumption for trial dropout.
- Small correlations dismissed. Gomes and colleagues advise that studies should not justify methods that ignore clustering on the basis of low estimated intracluster correlations.
- Costs and effects treated separately. An exchangeable structure describes dependence within one outcome, while a cost-effectiveness analysis also needs the correlation between costs and QALYs. For cluster trials Gomes and colleagues recommend multilevel models and the two-stage bootstrap.
Sources
- Campbell MK, Piaggio G, Elbourne DR, Altman DG. Consort 2010 statement: extension to cluster randomised trials. BMJ. 2012;345:e5661. https://doi.org/10.1136/bmj.e5661
- Diggle PJ, Heagerty P, Liang KY, Zeger SL. Analysis of Longitudinal Data. 2nd ed. Oxford University Press; 2002.
- Fitzmaurice GM, Laird NM, Ware JH. Applied Longitudinal Analysis. 2nd ed. Wiley; 2011.
- Gomes M, Ng ES, Grieve R, Nixon R, Carpenter J, Thompson SG. Developing appropriate methods for cost-effectiveness analysis of cluster randomized trials. Medical Decision Making. 2012;32(2):350-361. https://doi.org/10.1177/0272989X11418372
- Liang KY, Zeger SL. Longitudinal data analysis using generalized linear models. Biometrika. 1986;73(1):13-22. https://doi.org/10.1093/biomet/73.1.13
- Manca A, Rice N, Sculpher MJ, Briggs AH. Assessing generalisability by location in trial-based cost-effectiveness analysis: the use of multilevel models. Health Economics. 2005;14(5):471-485. https://doi.org/10.1002/hec.914
- Mancl LA, DeRouen TA. A covariance estimator for GEE with improved small-sample properties. Biometrics. 2001;57(1):126-134. https://doi.org/10.1111/j.0006-341x.2001.00126.x
- Rutterford C, Copas A, Eldridge S. Methods for sample size determination in cluster randomized trials. International Journal of Epidemiology. 2015;44(3):1051-1067. https://doi.org/10.1093/ije/dyv113
- SAS Institute. SAS/STAT User's Guide, The MIXED Procedure, Mixed Models Theory. Accessed 18 October 2026. https://go.documentation.sas.com/api/docsets/statug/v_023/content/statug_mixed_details01.htm
- Zeger SL, Liang KY. Longitudinal data analysis for discrete and continuous outcomes. Biometrics. 1986;42(1):121-130. https://doi.org/10.2307/2531248
Related Concepts (2)
Library
Publications
1
Statistical Analysis of Cost-Effectiveness Data — Willan & Briggs, 1st Edition ed., 2006 (John Wiley & Sons)
A synthesis of statistical methods for analysing cost-effectiveness data, including net-benefit regression, confidence intervals for the ICER, cost-effectiveness acceptability curves, and covariate adjustment. Part of the Wiley Statistics in Practice series.
BookView source →
Frequently Asked Questions (6)
What is exchangeable correlation?
Exchangeable correlation is a GEE working correlation in which all observations in a cluster, such as patients in a practice, share a common correlation.
Source: Liang & Zeger 1986
What does exchangeable correlation assume about observations in a cluster?
Every pair of observations in the same cluster is taken to share one common correlation, so patients in a general practice or trial centre are treated as equally alike, with no pair closer than any other. The order of observations within the cluster therefore carries no information, and a single parameter fills every off-diagonal entry of the working correlation matrix. Liang and Zeger set the structure out as Example 3 of their 1986 paper introducing generalised estimating equations and noted that clusters may hold any number of observations. They describe it as the structure obtained from a random effects model with a random level for each subject.
Source: Liang & Zeger 1986
When is exchangeable correlation appropriate?
Rutterford, Copas and Eldridge call the exchangeable assumption common and reasonable for cluster randomised trials, since patients recruited from the same general practice, ward or centre have no natural order. The structure also matches the pattern implied by a random intercept for each cluster in a mixed effects model. It fits less well for repeated health state utility values or costs from one patient over long follow-up, because it assumes a baseline value and a 12-month value are as closely related as two adjacent visits. In that setting a structure in which correlation fades with time, such as first-order autoregressive correlation, is more plausible.
Source: Rutterford et al. 2015
How does exchangeable correlation differ from autoregressive correlation?
Under exchangeable correlation every pair of observations in a cluster has the same correlation, whereas under first-order autoregressive correlation the correlation between observations j and k is the common value raised to the power of the distance between them. Autoregressive correlation therefore fades as observations move further apart in time, while exchangeable correlation ignores order entirely. Both structures need only one correlation parameter, and Liang and Zeger set them out as Examples 3 and 4 of their 1986 paper on generalised estimating equations. Exchangeable correlation suits patients within practices or centres, and autoregressive correlation suits repeated visits by the same patient where nearer measurements are more alike.
Source: Liang & Zeger 1986
How is exchangeable correlation used in analysis?
In generalised estimating equations exchangeable correlation is chosen as the working correlation, and its common parameter is estimated by moments from Pearson residuals pooled across clusters, alternating with updates of the regression coefficients. Standard errors then come from the sandwich estimator. Liang and Zeger showed that the estimates and this variance stay consistent when the mean model is right, even if the working correlation is wrong, provided clusters are independent and data are missing completely at random. The choice still affects precision, and in one of their calculations independence weighting kept only 0.82 of the efficiency of the correct exchangeable analysis when cluster sizes ranged from 1 to 8.
Source: Liang & Zeger 1986
What are the limitations of assuming exchangeable correlation?
An exchangeable structure describes dependence within one outcome, while a cost-effectiveness analysis of a cluster randomised trial also needs the correlation between individual costs and QALYs, so Gomes and colleagues recommend multilevel models and the two-stage bootstrap for such trials. Small numbers of clusters cause a separate problem. In their simulations generalised estimating equations gave interval coverage of 0.841 with 3 clusters per arm, and they suggest that 8 to 15 clusters per arm are needed. They also advise against justifying methods that ignore clustering on the basis of a low estimated intracluster correlation.
Source: Gomes et al. 2012
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 26 Oct 2026
Content version: 1.0.1
Canonical Identity
- Term code
- HE-ES-SA-059
Stable URI · Machine-readable · Resolvable · CC BY 4.0
