Concept Architecture
Confounding by Aggregation When Group Averages Mix Between-Group and Within-Group Effects
Confounding by aggregation arises when the unit of analysis is a group, such as a region, a hospital or a trial, and something that differs between the groups is linked to both the exposure and the outcome. The group-level slope then blends the effect on individuals with differences in risk between groups, and can be larger, smaller or opposite in sign to the effect inside each group. Health economics meets it when regional spending is related to regional outcomes, when treatment effects are regressed on trial-level patient characteristics, and when aggregate data are used to adjust indirect comparisons for a technology appraisal. A simple decomposition of the group-level slope shows where the problem enters evidence for health technology assessment (HTA), and an illustrative example shows it reversing a cost-effectiveness result. Confounding in general has its own dictionary entry.
How group membership turns into a confounder
An ecologic analysis compares groups rather than individuals. Morgenstern's review describes the gap that defines it, namely that individual-level data are missing on the joint distribution of the variables within groups. Wakefield traces ecologic bias to the inability of ecologic data to characterise within-area variability in exposures and confounders.
Greenland and Morgenstern note that ecological bias is sometimes attributed to confounding by the group variable, the variable used to define the groups, or to risk factors associated with it. That mechanism is what is meant here by confounding by aggregation. Their paper also shows it is only one route to ecological bias. Effect modification can produce profound ecological bias, and an extraneous risk factor need not be associated with the exposure at the individual level to bias a group-level estimate. The conditions for ecological bias are therefore much broader than those for confounding in individual-level data.
Decomposing a group-level slope
A short derivation locates the bias. Suppose that within every group an individual's risk is linear in exposure, with the same effect in each group, so the event rate in group is its baseline risk plus the effect multiplied by the share exposed. Regressing group event rates on group exposure shares, with groups weighted equally, gives the following slope.
where is the slope estimated from group-level data, is the effect of exposure on an individual's risk within groups, is the risk among unexposed people in group , is the proportion exposed in group , and the covariance and variance are taken across groups. The second term is the confounding by aggregation. It vanishes only when baseline risk is uncorrelated with the share exposed across groups, and it does not depend on how many individuals each group holds, so more data per group do not shrink it.
The same split appears in meta-analysis of individual participant data (IPD). Hua and colleagues centre each participant's covariate on its trial mean and enter the trial mean as a further term. The within-trial coefficient then describes how the treatment effect changes with an individual's covariate inside trials, the across-trial coefficient describes how the trial effect changes with the trial mean, and the two estimates are uncorrelated. An interaction fitted without this separation is a weighted average of the two, gaining power at the expense of potential ecological bias, and estimates the size of that bias.
Where it enters evidence for HTA
Most evidence for an economic model arrives as group summaries. Wakefield notes that ecologic studies are popular because they use existing databases and can offer large exposure variation across broad geographical areas.
Meta-regression on trial-level covariates. The Cochrane Handbook gives the case of age. A strong relationship between age and intervention effect within each trial can be invisible across trials with similar mean ages, and the direction across studies can even be the opposite of the direction within each study. NICE Decision Support Unit technical support document 3 (TSD 3) adds that the study of effect modifiers is observational even in randomised trials, because patients cannot be randomised to a covariate value, and that with few but precise trials a highly significant yet entirely spurious relation can appear.
Population-adjusted indirect comparisons. NICE DSU TSD 18 explains that some models combining individual and aggregate data require an effect modifier to act in the same way at both levels. That holds only with an identity link, all effect modifiers accounted for and proper randomisation; imposing it otherwise results in aggregation bias, a form of ecological bias. Hierarchical related regression avoids this by averaging the individual-level model over the population behind the aggregate data.
Worked example of regional uptake of a new drug
The regions, risks, costs and outcomes here are illustrative. Three regions of equal size set uptake of a new preventive drug through their formularies, so within a region treated and untreated patients have the same baseline risk. The drug lowers each patient's one-year event risk by 3 percentage points everywhere, but regions with older, higher-risk populations adopted it most.
| Region | Share treated | Risk without drug | Regional event rate |
|---|---|---|---|
| A | 0.20 | 0.10 | 0.094 |
| B | 0.50 | 0.16 | 0.145 |
| C | 0.80 | 0.22 | 0.196 |
1. Regional event rates. Each rate is baseline risk minus 0.03 times the share treated, giving , and , where , and are the regional event rates.
2. The group-level slope. The points lie on a straight line, so the ecological slope is . Taken at face value, treating every patient would raise event risk by 17 percentage points.
3. The decomposition. Across regions and , so the confounding term is and reproduces step 2.
4. The economic consequence. Assume a drug cost of GBP 500 per patient, GBP 10,000 per event and 0.5 QALYs lost per event. With the within-region effect, treating 1,000 patients avoids 30 events, so the incremental cost is , or GBP 200,000, the gain is QALYs, where is incremental cost and is QALYs gained, and the ICER is GBP 13,333 per QALY. With the ecological slope the same patients would suffer 170 extra events, the incremental cost would be , or GBP 2,200,000, and 85 QALYs would be lost, so the drug would appear dominated.
5. Interpretation. The regional data are accurate; the slope shows that regions treating more have higher event rates, because they have older populations. A within-region comparison recovers the 3 point reduction here because treated and untreated patients in each region share the same baseline risk. A regional regression adjusting for baseline risk cannot, because across these three regions baseline risk and uptake move in lockstep (each 0.30 rise in uptake comes with a 0.06 rise in baseline risk). Greenland and Morgenstern show that, in general, standardisation or ecological control of the variables responsible is insufficient to remove such bias.
Choices that decide whether the bias can be removed
Every remedy restores information about variation within groups. The options therefore depend on whether the analyst holds IPD, subgroup results or only group summaries.
- Use within-group information for individual questions. TSD 3 calls the estimate derived only from within-trial variability the most appealing option, as it is free from ecological and aggregation biases and other confounding between studies. Fisher and colleagues recommend this within-trial, or deft, approach as standard practice, and note it can use aggregate data when trials report effects by subgroup.
- Separate the levels in one-stage models. Hua and colleagues recommend centring patient-level covariates on each trial's mean.
- Report the power trade-off. TSD 3 notes that with continuous covariates and IPD the within-trial comparison also has far greater power, since patients vary much more than trial means. Where across-trial information is added, Fisher and colleagues ask for within-trial, across-trial and combined interactions to be shown separately; Hua and colleagues and TSD 3 both expect a test of their difference to have low power.
- Add individual-level data. Wakefield concludes that the only way to overcome ecologic bias without uncheckable assumptions is to supplement ecologic data with individual-level information.
What published reanalyses show for decision models
In a meta-analysis of five epilepsy trials, Hua and colleagues found an age interaction of (95% CI -0.019 to -0.003; ) when within-trial and across-trial information were amalgamated, but (95% CI -0.019 to 0.005; ) once separated. In five trials of anti-lymphocyte antibody induction in renal transplantation, Berlin and colleagues found with IPD that treatment worked better in patients with panel reactive antibodies of 20 per cent or more, about 15 per cent of patients, an interaction the group-level analyses failed to detect.
In an IPD meta-analysis of early supported discharge after stroke reanalysed by Fisher and colleagues, a meta-regression on the proportion of participants with a carer suggested the reduction in hospital stay shrank as that proportion rose (), whereas the within-trial interaction indicated that having a carer increased the effect. A subgroup effect in a decision model is only as sound as the within-trial evidence behind it.
Boundaries with nearby ideas
Several terms overlap with this one. The distinctions below turn on whether a confounder is needed and at which level the effect operates.
- Ecological bias. The broader family. Greenland and Morgenstern treat confounding by group as one cause and effect modification as another. The Cochrane Handbook notes that aggregation bias, ecological bias and ecological fallacy are used variously for the problem in meta-analysis.
- Simpson paradox. A within-group association reversing after pooling. Confounding by aggregation is one way to produce it, as in the worked example.
- Effect modification. A real difference in effect between groups. If the drug worked better in older regions, the slope would mix that genuine variation with confounding, and only within-group data could separate them.
- Aggregation bias in non-linear models. TSD 3 describes a bias needing no confounder. When a covariate changes baseline risk but not the treatment effect, pooling over it biases the effect towards the null in non-linear models, such as the log-linear models of survival analysis, but not in strictly linear ones. TSD 18 notes that a simulated treatment comparison that substitutes mean covariate values is biased when the link is not the identity, because the mean outcome depends on the full covariate distribution.
- Hierarchical model. Represents individuals within groups and can estimate within-group and between-group terms separately.
Misreadings that recur in applied work
The first is that randomisation protects a meta-regression. The Cochrane Handbook stresses that subgroup analyses and meta-regressions are observational and open to confounding by other study-level characteristics. The second is that adjusting a group-level regression for group-level covariates fixes the problem, which Greenland and Morgenstern show is generally untrue. The third is that analysts already avoid it, yet Fisher and colleagues reviewed 82 IPD meta-analyses from 2011 to 2014 and found that 23% combined within-trial and across-trial information, 66% reported too little to tell and 2% used the within-trial approach. An aggregate data meta-analysis remains a sound source of an average effect; the danger is reading its across-trial slopes as individual-level effect modification, a question better answered by individual patient data meta-analysis.
Sources
- Berlin JA, Santanna J, Schmid CH, Szczech LA, Feldman HI. Individual patient- versus group-level data meta-regressions for the investigation of treatment effect modifiers: ecological bias rears its ugly head. Statistics in Medicine. 2002;21(3):371-387. https://doi.org/10.1002/sim.1023
- Deeks JJ, Higgins JPT, Altman DG, McKenzie JE, Veroniki AA, editors. Chapter 10: Analysing data and undertaking meta-analyses. In: Cochrane Handbook for Systematic Reviews of Interventions version 6.5. Cochrane; 2024. https://training.cochrane.org/handbook/current/chapter-10
- Dias S, Sutton AJ, Welton NJ, Ades AE. NICE DSU Technical Support Document 3: Heterogeneity: subgroups, meta-regression, bias and bias-adjustment. University of Sheffield; 2011, updated 2012. https://doi.org/10.15131/shef.data.33737038
- Fisher DJ, Carpenter JR, Morris TP, Freeman SC, Tierney JF. Meta-analytical methods to identify who benefits most from treatments: daft, deluded, or deft approach? BMJ. 2017;356:j573. https://doi.org/10.1136/bmj.j573
- Greenland S, Morgenstern H. Ecological bias, confounding, and effect modification. International Journal of Epidemiology. 1989;18(1):269-274. https://doi.org/10.1093/ije/18.1.269
- Hua H, Burke DL, Crowther MJ, Ensor J, Tudur Smith C, Riley RD. One-stage individual participant data meta-analysis models: estimation of treatment-covariate interactions must avoid ecological bias by separating out within-trial and across-trial information. Statistics in Medicine. 2017;36(5):772-789. https://doi.org/10.1002/sim.7171
- Morgenstern H. Ecologic studies in epidemiology: concepts, principles, and methods. Annual Review of Public Health. 1995;16:61-81. https://doi.org/10.1146/annurev.pu.16.050195.000425
- Phillippo DM, Ades AE, Dias S, Palmer S, Abrams KR, Welton NJ. NICE DSU Technical Support Document 18: Methods for population-adjusted indirect comparisons in submissions to NICE. University of Sheffield; 2016. https://doi.org/10.15131/shef.data.33848134
- Wakefield J. Ecologic studies revisited. Annual Review of Public Health. 2008;29:75-90. https://doi.org/10.1146/annurev.publhealth.29.020907.090821
Related Concepts (4)
Library
Publications
7
Ecologic studies in epidemiology: concepts, principles, and methods — Morgenstern H, Vol. 16, pp. 61-81 ed., 1995 (Annual Review of Public Health)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Confounding by Aggregation, where it is cited as a reference for that concept.
Journal ArticleView source →Ecological bias, confounding, and effect modification — Greenland S, Morgenstern H, Vol. 18, No. 1, pp. 269-274 ed., 1989 (International Journal of Epidemiology)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Confounding by Aggregation, where it is cited as a reference for that concept.
Journal ArticleView source →Individual patient- versus group-level data meta-regressions for the investigation of treatment effect modifiers: ecological bias rears its ugly head — Berlin JA, Santanna J, Schmid CH, Szczech LA, Feldman HI, Vol. 21, No. 3, pp. 371-387 ed., 2002 (Statistics in Medicine)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Confounding by Aggregation, where it is cited as a reference for that concept.
Journal ArticleView source →Meta-analytical methods to identify who benefits most from treatments: daft, deluded, or deft approach? — Fisher DJ, Carpenter JR, Morris TP, Freeman SC, Tierney JF, Vol. 356, Article j573 ed., 2017 (BMJ)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Confounding by Aggregation, where it is cited as a reference for that concept.
Journal ArticleView source →Ecologic studies revisited — Wakefield J, Vol. 29, pp. 75-90 ed., 2008 (Annual Review of Public Health)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Confounding by Aggregation, where it is cited as a reference for that concept.
Journal ArticleView source →Chapter 10: Analysing data and undertaking meta-analyses — Deeks JJ, Higgins JPT, Altman DG, McKenzie JE, Veroniki AA, editors, Version 6.5 ed., 2024 (In: Cochrane Handbook for Systematic Reviews of Interventions version 6.5)
Book or book chapter listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Confounding by Aggregation, where it is cited as a reference for that concept.
BookView source →One-stage individual participant data meta-analysis models: estimation of treatment-covariate interactions must avoid ecological bias by separating out within-trial and across-trial information — Hua H, Burke DL, Crowther MJ, Ensor J, Tudur Smith C, Riley RD, Vol. 36, No. 5, pp. 772-789 ed., 2017 (Statistics in Medicine)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Confounding by Aggregation, where it is cited as a reference for that concept.
Journal ArticleView source →
Frequently Asked Questions (6)
What is confounding by aggregation?
Confounding by aggregation is bias when group-level data, such as regional or trial averages, mix differences between groups into an exposure's effect.
Source: Greenland & Morgenstern 1989
Why does analysing grouped data mix different effects?
When data are analysed at the level of groups rather than individuals, the relationship observed blends two distinct things, how the outcome varies with the exposure within groups, and how it varies between groups that differ in many other ways. These within-group and between-group effects can differ in size or even direction, and the grouped analysis confounds them into one figure. The result may match neither the individual nor the true group effect. Only disaggregated data separates them. Greenland and Robins (1994) describe this.
Source: Greenland & Robins 1994
How does confounding by aggregation occur?
Confounding by aggregation occurs because aggregating data into groups combines the within-group associations with the differences between groups, and factors that vary systematically between groups can be associated with both the exposure and outcome at the group level, confounding their relationship. The group-level association thus reflects both the individual-level effect and between-group confounding, which need not match. So analysing data at the group level can introduce confounding that would not affect an individual-level analysis, since the aggregation mixes the two sources of variation that individual data would keep separate.
Source: Rothman, Greenland & Lash 2008
Why does confounding by aggregation matter?
Confounding by aggregation matters because conclusions drawn from group-level data may be distorted by between-group confounding and so misrepresent individual-level relationships, potentially leading to wrong inferences and decisions. In health and economic research using aggregated data, an association between group averages might reflect confounding between groups rather than a genuine individual effect. Recognising confounding by aggregation prompts caution in interpreting ecological analyses and, where individual-level conclusions are needed, the use of individual-level data or methods that separate within-group from between-group effects to avoid the distortion.
Source: Robinson 1950
How does confounding by aggregation relate to the ecological fallacy?
Confounding by aggregation relates to the ecological fallacy because both concern the mismatch between group-level and individual-level relationships: the ecological fallacy is the error of inferring individual relationships from group-level associations, and confounding by aggregation is one mechanism producing that mismatch, through between-group factors confounding the aggregated association. Robinson's work showing divergence between ecological and individual correlations underlies both. So confounding by aggregation explains part of why ecological associations can mislead about individuals, making it a specific reason to be wary of the ecological fallacy.
Source: Robinson 1950
How can confounding by aggregation be avoided?
Confounding by aggregation can be avoided by using individual-level data, which keeps within-group and between-group variation separate and allows confounders to be adjusted at the individual level, rather than relying on aggregated data where the two are mixed. Where only aggregated data are available, analysts should limit conclusions to the group level, account for between-group factors where possible, and interpret results cautiously. Multilevel methods that model both levels can help. So avoiding it rests on analysing data at the individual level or handling the aggregation explicitly.
Source: Rothman, Greenland & Lash 2008
Trust Record
Not verified for this version
This concept changed after its last verification. Re-verify to stamp this version.
Canonical Identity
- Term code
- HE-DS-BV-007
Stable URI · Machine-readable · Resolvable · CC BY 4.0
