Int J Epidemiol. Apr 2010; 39(2): 417–420.

# Illustrating bias due to conditioning on a collider

^{1} Department of Epidemiology, UNC Gillings School of Global Public Health, Chapel Hill, NC, USA.

^{2} Department of Biostatistics, McGill University, Montreal, Canada.

^{3} Epidemiology Branch, *Eunice Kennedy Shriver* NICHD, NIH, Bethesda, MD, USA.

^{4} Department of Biostatistics, UNC Gillings School of Global Public Health, Chapel Hill, NC, USA.

* Corresponding author. Department of Epidemiology, UNC Gillings School of Global Public Health, Chapel Hill, NC, USA. E-mail:

ude.cnu@elocAccepted October 1, 2009.

Copyright Published by Oxford University Press on behalf of the International Epidemiological Association © The Author 2009; all rights reserved.

This article has been

cited by other articles in PMC.

## Abstract

That conditioning on a common effect of exposure and outcome may cause selection, or collider-stratification, bias is not intuitive. We provide two hypothetical examples to convey concepts underlying bias due to conditioning on a collider. In the first example, fever is a common effect of influenza and consumption of a tainted egg-salad sandwich. In the second example, case-status is a common effect of a genotype and an environmental factor. In both examples, conditioning on the common effect imparts an association between two otherwise independent variables; we call this selection bias.

**Keywords: **Bias, selection, methods, epidemiologic

## Introduction

Epidemiologists, like researchers in many fields, give a great deal of attention to potential sources of bias in their study findings. As opposed to imprecision, biases (or systematic errors) abide as the sample size grows. Epidemiologists immediately understand why an uncontrolled common cause of exposure and outcome causes bias. We call this confounding.1 In our experience, epidemiologists have a more difficult time understanding why conditioning (implicitly or explicitly) on, or controlling for, a common ‘effect’ of exposure and outcome may cause bias. We call this selection bias,2 collider-stratification bias3 or bias due to conditioning on a collider. Note that here the term ‘conditioning’ refers to restriction (by design or analysis), stratification or regression adjustment. Although some examples of collider-stratification bias have been published in the epidemiologic literature,2^{,}4–6 here we present two simple hypothetical examples that may help to convey some concepts underlying bias due to conditioning on a collider. First, we briefly introduce causal diagrams.

Diagrams have been used to encode knowledge about systems of variables in epidemiology for decades.7 Recently, Pearl8 formalized causal diagrams as directed acyclic graphs, providing investigators with a powerful tool for bias assessment, if the rules of causal diagrams are followed. Rules for working with causal diagrams are given by Greenland *et al.*9 and succinctly in the Appendix of Hernán *et al.*10 Causal diagrams link variables by single-headed (i.e. directed) arrows that represent direct causal effects. For a diagram to represent a causal system, all common causes of any pair of variables included on the diagram must also be included on the diagram. The absence of an arrow between two variables is a strong claim of no direct effect of the former variable on the latter. We denote conditioning by placing a box around the conditioned variable.

## Example one

Suppose that you attend a meeting with 99 of your peers. Unbeknownst to you, 10 were pre-symptomatically infected with influenza upon arrival. We ignore transmission, the effects of which we would not see for a few days. Everyone at the meeting ate one of 50 chicken or 50 an egg-salad sandwiches in a boxed lunch, chosen at random. Without further information, what is the expected number of influenza cases in the 50 people who ate a chicken sandwich? The answer is five; and the same is true for the 50 people who ate an egg-salad sandwich. The data in illustrate this example. In panel A of , the risk of influenza is 5/50 in both sandwich groups, and the risk difference is 0. Because sandwich type was randomized, we expect no association between pre-existing influenza and sandwich type. Ignoring chance imbalances due to the relatively small sample size, it is clear that the data in panel A of represent what we would expect to see in an infinite sample (one can think of each of the 50 people as representing a much larger number of homogenous individuals).

Data illustrative of selection bias, due to conditioning on a collider

That evening, you and 54 others develop a 102°F fever. Let’s say that in our hypothetical world there are only two ways to get such a fever: influenza or consuming 1 of the 50 tainted egg-salad sandwiches. Among those individuals with a fever, therefore, all were exposed to either influenza or an egg-salad sandwich (or both). Put another way, restricting our attention to only those individuals with a fever or conditioning on (stratifying by) the variable fever, we have conditioned on a ‘common effect’ of both influenza and sandwich type.

Therefore, knowing that you have a fever, if we ask you whether you ate an egg-salad sandwich and you respond ‘no’, then we know that your fever is due to having influenza. In panel B of , we see that, among those with a fever, the influenza risk among those who ate a chicken sandwich is 5/5 = 1, compared with 5/50 for those who ate an egg-salad sandwich, yielding a risk difference of 0.9. (Conversely, all individuals without a fever were exposed to neither influenza nor tainted egg-salad.) This association is introduced by conditioning on a common effect, namely fever. Recall that sandwich type was randomly assigned. This association was not present before we knew about (and conditioned on) your fever status.

In general, we may introduce bias by conditioning on common effects of otherwise unrelated variables: we call this selection bias. Consider the variables influenza *I*, sandwich type *S* and fever *F*. A causal diagram8 illustrating the associations as described previously is drawn in A. A variable like *F*, where two arrowheads meet, is called a ‘collider’ on the ‘path’ *I–F–S*; but may not be a collider on other paths (if they existed). When we condition on a collider, we may introduce associations in one or more strata that were not present in the source population. One way to understand the bias caused by conditioning on a collider is to envision a connection made between *I* and *S* once *F* is conditioned upon; indeed, some methods for working with causal diagrams explicitly draw such connections.9 The bias in this example is not in the association of exposure (*S*) with disease (*F*), but it is in the apparent *I–S* association, within one or both levels of *F*.

Causal diagrams depicting scenarios described in Example 1 (**A**), Example 2 (**B**) and in Discussion (**C**)

## Example two

Another example of selection bias is the setting of a case-only study, which has become popular in the study of gene–environment interactions.11 This design is used to measure departures from a multiplicative model of a constant risk or rate ratio (RR) under assumptions that the environmental variable (*E*) and the genetic variable (*G*) are independently distributed in the source population and that the estimated effect of at least one of them on the disease (*D*) is not confounded. These conditions are present if *G* is subject to Mendelian randomization12 and *G* does not affect *E*.

Let *A*_{GE} and *N*_{GE} represent the number of incident cases and the person-time at risk in each of the four combinations of *G* = 0, 1 and *E* = 0, 1. Then the rate is *R*_{GE} = *A*_{GE}/*N*_{GE}, and the ratio of RRs, (*R*_{11}/*R*_{10})/(*R*_{01}/*R*_{00}), may be written as a ratio of odds ratios (ORs) as . Given the independence of *G* and *E* in the source population, the denominator of this last expression is unity. The numerator of this last expression is the case-only *G–E* OR, or OR_{GE}_{|}_{D}_{=1}, and equals the ratio of RRs.

When *E* and *G* both affect *D*, a causal diagram is drawn in B, and *D* is a collider on the path *G–D–E*. Unconditionally (i.e. in the source population for cases in the case-only study), *E* and *G* are not associated. However, when we condition on *D*, we expect to find an association between *E* and *G* within at least one stratum of *D* because of selection bias. In the case-only design, this conditioning is accomplished by restricting the study to the cases.

For illustration, it is useful to consider the full underlying cohort study and examine the *G–E* association in both levels of *D* (i.e. among the cases and non-cases). In the hypothetical data in , *G* and *E* are unassociated in the persons at risk (OR_{GE} = 1.0), but *G* and *E* are associated within levels of *D*. Among the non-cases, the OR_{GE}_{|}_{D}_{=0} = 0.16. Among the cases, the OR_{GE}_{|}_{D}_{=1} = 1.5, which equals the ratio of the RRs (i.e. 3.0/2.0 = 1.5).

A source population for a *G–E* case-only study of a source population in which the RRs are not constant^{a}

Under the design assumptions of the case-only study, the case-only *G–E* OR is an unbiased estimate of the ratio of RRs. The selection bias is not in the estimate of that measure, but in the *G–E* association within one or both levels of *D* as an estimate of the *G–E* association in the source population. In , OR_{GE} equals 1, but OR_{GE}_{|}_{D}_{=0} ≠ 1 and OR_{GE}_{|}_{D}_{=1} ≠ 1. When the ratio of RRs equals 1, OR_{GE}_{|}_{D}_{=1} equals 1 as well and the overall *G–E* association is distorted only among the non-cases, OR_{GE}_{|}_{D}_{=0} ≠ 1.

## Discussion

This note is about the distortion of an association between two variables that occurs by conditioning on a common effect; we call this selection bias. Whether through restriction, stratification or regression adjustment, the result in this setting is a selection bias that is distinct from bias due to confounding.

Some confusion between confounding and selection bias may have resulted from definitions of confounding,13 which were not explicit about confounding being a bias due to the existence of a common cause of exposure and outcome. By definition, a common cause must be ‘temporally prior’ to both exposure and outcome. However, a measured confounder may be temporally ‘posterior’ to exposure if it is on a causal pathway from the common cause to the outcome, or temporally posterior to ‘both’ exposure and outcome if it is a descendant of the common cause. In contrast, by definition, a common effect must be temporally posterior to both exposure and outcome. Selection bias results from conditioning on such a common effect. In the present examples the collider is the ‘outcome’ itself rather than a variable along a path that would cause bias in an exposure–outcome association. We chose such examples to minimize the number of variables needed. Selection bias may also occur when the selection happens temporally ‘prior’ to exposure, such as when we condition on a common effect of causes of exposure and outcome as shown in C. In many real-data settings one cannot determine whether a purported bias is due to confounding or selection and the distinction may not matter. In addition to confounding and selection bias, causal diagrams have been used to depict direct and indirect effects,14 bias due to overadjustment,15 time varying confounding16 and time modified confounding.17

In summary, when one has conditioned (by design or analysis) on a common effect of a pair of variables then there is likely to be a spurious association between this pair of variables, which is due to selection bias. Of course, our examples are contrived. In the first, we ask that you ignore transmission and believe in a world with only two causes of fever and in both examples we ask that you ignore sampling variability. Our only defense for these artificialities is that sometimes clarity is inversely related to the complexities of life.

## Funding

Grants R03-AI-071763, R01-AA-01759 and P30-AI-50410 (to S.R.C.); Lineberger Cancer Center Core Grant CA16086 and P30-AI-50410 (to H.C.); Intramural Research Program of the *Eunice Kennedy Shriver* NICHD, NIH; and the American Chemical Council to (to E.S.); P30-ES-10126 (to C.P.).

## Acknowledgements

The authors would like to thank the members of the Causal Inference Research Group at the UNC Gillings School of Global Public Health for thoughtful discussions.

**Conflict of interest:** None declared.

### KEY MESSAGES

Conditioning, by design or analysis, on a common effect of a pair of variables may cause a spurious association (i.e. selection bias) between this pair of variables.

Intuition for such bias may be gained by studying simple examples, as presented herein.

## References

1.

Greenland S, Morgenstern H. Confounding in health research. Annu Rev Public Health. 2001;22:189–212. [PubMed]2.

Hernán MA, Hernandez-Diaz S, Robins JM. A structural approach to selection bias. Epidemiology. 2004;15:615–25. [PubMed]3.

Greenland S. Quantifying biases in causal models: classical confounding vs collider-stratification bias. Epidemiology. 2003;14:300–6. [PubMed]4.

Robins JM. Data, design, and background knowledge in etiologic inference. Epidemiology. 2001;12:313–20. [PubMed]5.

Hernandez-Diaz S, Schisterman EF, Hernan MA. The birth weight paradox uncovered? Am J Epidemiol. 2006;164:1115–20. [PubMed]6.

VanderWeele TJ, Robins JM. Directed acyclic graphs, sufficient causes, and the properties of conditioning on a common effect. Am J Epidemiol. 2007;166:1096–104. [PubMed]7.

Breslow N. Design and analysis of case–control studies. Annu Rev Public Health. 1982;3:29–54. [PubMed]8. Pearl J. Causal diagrams for empirical research. Biometrika. 1995;82:669–710.

9.

Greenland S, Pearl J, Robins JM. Causal diagrams for epidemiologic research. Epidemiology. 1999;10:37–48. [PubMed]10.

Hernán MA, Hernandez-Diaz S, Werler MM, et al. Causal knowledge as a prerequisite for confounding evaluation: an application to birth defects epidemiology. Am J Epidemiol. 2002;155:176–84. [PubMed]11.

Khoury MJ, Flanders WD. Nontraditional epidemiologic approaches in the analysis of gene-environment interaction: case-control studies with no controls! Am J Epidemiol. 1996;144:207–13. [PubMed]12.

Davey Smith G, Ebrahim S. 'Mendelian randomization': can genetic epidemiology contribute to understanding environmental determinants of disease? Int J Epidemiol. 2003;32:1–22. [PubMed]13. Last JM. A Dictionary of Epidemiology. 4th. New York: Oxford University Press; 2001.

14.

Cole SR, Hernán MA. Fallibility in estimating direct effects (with discussion) Int J Epidemiol. 2002;31:163–65. [PubMed]15.

Schisterman EF, Cole SR, Platt RW. Overadjustment bias and unnecessary adjustment in epidemiologic studies. Epidemiology. 2009;20:488–95. [PMC free article] [PubMed]16.

Robins JM, Hernán MA, Brumback B. Marginal structural models and causal inference in epidemiology. Epidemiology. 2000;11:550–60. [PubMed]17.

Platt RW, Schisterman EF, Cole SR. Time-modified confounding. Am J Epidemiol. 2009;170:687–94. [PMC free article] [PubMed]