Intended for healthcare professionals

Endgames Statistical Question

Understanding the ecological fallacy

BMJ 2015; 351 doi: https://doi.org/10.1136/bmj.h4773 (Published 21 September 2015) Cite this as: BMJ 2015;351:h4773

This article has a correction. Please see:

  1. Philip Sedgwick, reader in medical statistics and medical education1
  1. 1Institute for Medical and Biomedical Education, St George’s, University of London, London, UK
  1. Correspondence to: P Sedgwick p.sedgwick{at}sgul.ac.uk

Researchers investigated whether an association existed between antibiotic prescribing by general practices and antibiotic resistance. A cross sectional study design was used. The setting was 28 general practices in Scotland. The participants were patients registered with a general practitioner between January 1995 and December 1996 who provided a urine sample for analysis during this period. In total, 8833 patients were included in the sample. For each patient in each of the practices the number of dispensed prescriptions for trimethoprim was obtained from databases of health records.1

Data were aggregated at the general practice level. For each general practice, antibiotic prescribing was measured as the number of dispensed trimethoprim prescriptions per 100 practice patients. Antibiotic resistance was defined as the proportion of patients in the practice with a urine sample that contained trimethoprim resistant Gram negative bacteria. Rates of trimethoprim prescription varied from 67 to 357 prescriptions per 100 patients between practices. The prevalence of trimethoprim resistance in Gram negative bacteria isolated from urine specimens varied between 26% and 50%. A weak negative association was seen between trimethoprim prescription and antibiotic resistance across the 28 general practices (Spearman rank correlation rs=−0.039). The researchers commented that although there was no evidence of an association between trimethoprim prescription and resistance at the practice level, the results may have been prone to the ecological fallacy.

Which of the following statements, if any, are true?

  • a) The unit of observation was the patient

  • b) The unit of analysis was the general practice

  • c) Spearman’s rank correlation coefficient measured the strength of a linear association between trimethoprim prescription and antibiotic resistance across practices

  • d) The ecological fallacy is the assumption that inferences made at the general practice level would apply to individual patients

Answers

Statements a, b, c, and d are all true.

The aim of the study was to establish whether an association existed between antibiotic prescribing by general practices and antibiotic resistance. The unit of observation was the patient (a is true), whereas the unit of analysis was the general practice (b is true). The unit of observation and unit of analysis are often confused.2 The unit of observation, sometimes referred to as the unit of measurement, is defined statistically as the “who” or “what” for which data are measured or collected. The unit of analysis is defined statistically as the “who” or “what” for which information is analysed and conclusions are made.

In the above study, the data were measured for patients; antibiotic resistance was recorded for those patients who provided urine samples, while the number of dispensed trimethoprim prescriptions per patient was identified from healthcare records for all patients in each of the practices. However, the data were aggregated at the practice level, permitting a comparison of the association between the rate of trimethoprim prescription in practices and the proportion of patients with urine samples identified with trimethoprim resistant Gram negative bacteria across the 28 general practices.

The data were analysed using Spearman’s rank correlation coefficient,3 which measured the strength of the linear association between rates of trimethoprim prescription and the proportion of patients with urine samples identified with trimethoprim resistant Gram negative bacteria across the 28 general practices (c is true). A weak negative association between trimethoprim prescription and resistance across general practices was reported. Hence, there was no evidence that practices with the highest prescribing rates had increased proportions of patients with trimethoprim resistance. However, to assume that these results could be applied to the individual (that is, that patients with prescriptions for trimethoprim do not have trimethoprim resistance) would be an erroneous belief termed the ecological fallacy (d is true). The results suggest that general practices with the highest rates of trimethoprim prescribing have similar proportions of patients with trimethoprim resistance as those practices with the lowest rates of trimethoprim prescribing. However, we cannot assume that patients receiving trimethoprim prescriptions are just as likely to have trimethoprim resistance as those patients not receiving trimethoprim prescriptions.

Although the authors of the above study aggregated and analysed data at the general practice level, they also reported the results of analyses at the individual patient level. It was possible to link patient records indicating prescription of trimethoprim and the test results for the urine samples. In particular, resistance to trimethoprim was significantly associated with age, sex, and the individual’s exposure to trimethoprim or other antibiotics. The association with trimethoprim resistance was strongest for people who had recently been exposed to trimethoprim. The researchers commented that the analysis of data at the practice level obscured important associations between antibiotic prescribing and resistance at the individual level.

More generally, the ecological fallacy is a term used when data collected at a group level are analysed and the results are assumed to apply to associations at the individual patient level. The ecological fallacy is of particular concern when interpreting results from ecological studies.4 An ecological study is observational by design, whereby the investigators do not intervene but record factors such as the health, behaviour, attitudes, lifestyle choices, or economic status of people or patients. The people or patients occur in clusters or natural groupings, such as general practices or countries, and a cross section of the clusters is obtained to represent the population. Although the unit of observation may be the individual person or patient, the unit of analysis is the natural grouping (cluster). Therefore, ecological studies are prone to the ecological fallacy. Ecological studies make large scale comparisons between groups of people and allow an initial examination of the status and needs of communities, for example, the health status of countries.

Notes

Cite this as: BMJ 2015;351:h4773

Footnotes

  • Competing interests: None declared.

References

View Abstract