- Research article
- Open Access
- Published:

# On the collapsibility of measures of effect in the counterfactual causal framework

*Emerging Themes in Epidemiology*
**volume 16**, Article number: 1 (2019)

## Abstract

The relationship between collapsibility and confounding has been subject to an extensive and ongoing discussion in the methodological literature. We discuss two subtly different definitions of collapsibility, and show that by considering causal effect measures based on counterfactual variables (rather than measures of association based on observed variables) it is possible to separate out the component of non-collapsibility which is due to the mathematical properties of the effect measure, from the components that are due to structural bias such as confounding. We provide new weights such that the causal risk ratio is collapsible over arbitrary baseline covariates. In the absence of confounding, these weights may be used for standardization of the risk ratio.

## Introduction

A measure of association (such as the risk difference or the risk ratio) is said to be collapsible if the marginal measure of association is equal to a weighted average of the stratum-specific measures of association [1]. The relationship between collapsibility and confounding has been subject to an extensive and ongoing discussion in the literature [2]. In this paper, we argue that the concept of collapsibility can be made clearer if we frame the discussion in terms of causal effect measures based on counterfactual variables.

In all the examples, we are interested in the effect of a binary exposure *A* (e.g. a drug), on a binary outcome *Y* (e.g. a side effect). We use superscript to denote counterfactual variables [3]. For example, \(Y^{a=1}\) is an indicator for whether an individual would have got the outcome if, possibly contrary to fact, she had been exposed to the drug. We will make a distinction between measures of association, which compare the distribution of the outcome in the exposed with the distribution of outcome in the unexposed; and causal measures of effect, which compare the counterfactual distribution of the outcome under exposure (that is, the distribution of the outcome if everyone is exposed) with the counterfactual distribution of the outcome under the absence of exposure (that is, the distribution of the outcome if everyone is unexposed). For example, the associational risk difference is \(\text {Pr}(Y=1 \vert A=1) - \text {Pr}(Y=1\vert A=0)\) whereas the causal risk difference (*RD*) is \(\text {Pr}(Y^{a=1}=1)-\text {Pr}(Y^{a=0}=1)\). These effect measures may be defined within levels of covariates *V*.

This paper is organized as follows. In second section, we discuss two definitions of collapsibility, and show how established results about collapsibility depend on which definition is considered. In third section, we provide an application of these definitions to three measures of causal effects (risk difference, risk ratio, and odds ratio) and discuss the weights that make the risk difference and the risk ratio collapsible over an arbitrary set of baseline covariates. These weights can be used to standardize the effect measure to a population with any distribution of *V*, and we explicitly introduce such weights for the risk ratio. In fourth section, we show that while the weights that are required for collapsibility of the risk ratio involve counterfactual (and therefore unobservable) components, these weights are identified from observed data in the absence of confounding. In fifth section, we discuss the implications of these results.

## Definitions of collapsibility

We will adopt Pearl’s definition of collapsibility for measures of association [4]:

###
**Definition 1**

(*Collapsibility of a Measure of Association*) Let *g*[*f*(*A*, *Y*)] be any functional that measures the association between *A* and \(Y\) in the joint distribution \(f(A,Y)\). We say that \(g\) is collapsible on a variable \(V\) with weights \(w_v\) if \(\frac{\sum _v{\{g[f(A,Y \vert V=v)]\times w_v}\}}{\sum _v{w_v}} = g[f(A,Y)]\)

Newman [5] showed conditions under which the associational risk difference, risk ratio, and odds ratio are collapsible (or averageable) according to this definition. He also provided corresponding weights. Briefly, we note that: the associational risk difference is collapsible with weights \(\text {Pr}(V=v \vert A=1)\) if \(V\) is not associated with the outcome in the unexposed, or if \(V\) is not associated with the exposure; the associational risk ratio is collapsible with weights \(\text {Pr}(V=v \vert A=1)\times \text {Pr}(Y=1 \vert A=0, V=v)\) under similar conditions; and the associational odds ratio is collapsible with weights \(\text {Pr}(V=v \vert A=1)\times \text {Pr}(Y=0 \vert A=1,V=v)\times \frac{\text {Pr}(Y=1 \vert A=0, V=v)}{1-\text {Pr}(Y=1 \vert A=0,V=v)}\) under certain very limiting conditions, for example if \(\text {Pr}(Y=1\vert A=0, V=v)\) is equal for all values of *v*. A full discussion of the graphical and probabilistic conditions that lead to collapsibility under this definition is provided by Greenland and Pearl [6].

From these results, it follows that general statements about the collapsibility properties of effect measures (e.g. “the risk difference is collapsible”) must either be qualified by a specification of the conditions that are being assumed, or alternatively taken to refer to some other definition of collapsibility. We therefore suggest a suitable alternative definition: a measure of causal effect is collapsible if the marginal effect measure is equal to a weighted average of the stratum-specific causal effect measures. This is a formalization of the definition used in Fine Point 4.3 in Hernan and Robins textbook *Causal Inference*, and can mathematically be stated as follows:

###
**Definition 2**

(*Collapsibility of a Measure of Causal Effect*) Let \(h[f(Y^{a=0},Y^{a=1})]\) be any function of the parameters \(Y^{a=0}\) and \(Y^{a=1}\) in the joint distribution \(f(Y^{a=0}, Y^{a=1})\). We say that \(h\) is collapsible on a variable \(V\) with weights \(w_v\) if \(\frac{\sum _v{\{\{h[f(Y^{a=0},Y^{a=1} \vert V=v)]\times w_v}\}}{\sum _v{w_v}} = h[f(Y^{a=0},Y^{a=1})]\).

As we will show in the next section, under Definition 2 it is possible to provide results that guarantee collapsibility of certain effect measures *for any data set*. Collapsibility can then be understood as a mathematical property of the effect measure, rather than a consequence of certain graphical or probabilistic structures in the particular data set. Consequently, results from Greenland and Pearl do not apply under Definition 2, and measures of effect may be collapsible over \(V\) even if \(V\) is a confounder. Definitions 1 and 2 are not generally equivalent: a set of weights that satisfies Definition 1 may not satisfy Definition 2, and conversely a set of weights that satisfies Definition 2 may not satisfy Definition 1. The definitions are however equivalent if there is neither confounding unconditionally, nor confounding conditional on *V * (i.e. if \(Y^{a} {\perp\mkern-10mu\perp} A\) and \(Y^{a} {\perp\mkern-10mu\perp} A \vert V\) for all values of *a*, respectively).

Finally, we consider a third related concept, discussed by Miettinen [7], who stated (correctly, but without proof) that the “standardized risk ratio” (SRR), which is constructed by standardizing the risk in the exposed and the risk in the unexposed separately with weights Pr(\(V=v\)) and reporting the ratio of these measures (Formula 4 in Miettinen), is equal to a weighted average of the stratum-specific risk ratios under the weights \(\text {Pr}(V=v)\times \text {Pr}(Y=1 \vert A=0, V=v).\) (Formula 6 in Miettinen). Since Miettinen’s SRR is equal to the causal risk ratio if there is no unmeasured confounding, Miettinen’s weights satisfy Definition 2 in the special case of no confounding conditional on *V*.

## Collapsibility of measures of causal effect

### Risk difference

The causal risk difference is collapsible over covariates *V* with respect to weights \(w_v\) if \(\frac{\sum _v{\{[\text {Pr}(Y^{a=1}=1|V=v)-\text {Pr}(Y^{a=0}=1|V=v)]\times w_v}\}}{\sum _v{w_v}} = \text {Pr}(Y^{a=1}=1)-\text {Pr}(Y^{a=0}=1)\). We next proceed to show that the causal risk difference is collapsible over arbitrary covariates *V* if we use the weights \(w_v = \text {Pr}(V=v)\).

First note that the sum of the weights is 1, allowing the denominator to be ignored. Next,

Also note that in the absence of effect modification (i.e. if the risk difference is the same in every stratum) the stratum-specific risk differences will also be equal to the marginal risk difference, and the risk difference is collapsible with any weights. It can be shown that this is true for any measure of effect for which there exist weights that guarantee collapsibility over arbitrary covariates.

### Risk ratio

The risk ratio is asymmetric with respect to coding of the outcome, so it is necessary to consider each risk ratio model separately. These are defined as follows:

The two risk ratio models require different sets of weights for collapsibility. We next show that the causal risk ratio \(RR(-)\) is collapsible over arbitrary covariates *V* if we use the weights \(w_v = \text {Pr}(V=v \vert Y^{a=0}=1)\), i.e. weights determined by the distribution of the baseline covariates among those individuals who would have been cases if they, possibly contrary to fact, were not treated with drug *A*:

Our goal is to show that

Again, we note that the sum of the weights is 1, and that the denominator can therefore be ignored.

This proof is not invariant to the coding of the exposure or outcome variables, and the correct weights will therefore depend on the exact specification of the risk ratio parameter. Analogous proofs can be provided to show that the weights for \(RR(+)\) are given by \(\text {Pr}(V=v \vert Y^{a=0}=0)\), the weights for \(\frac{1}{RR(-)}\) are given by \(\text {Pr}(V=v \vert Y^{a=1}=1)\), and that the weights for \(\frac{1}{RR(+)}\) are given by \(\text {Pr}(V=v \vert Y^{a=1}=0)\),

Note that the marginal causal risk ratio is generally not equal to a weighted average of the conditional causal risk ratios, if the weights are determined by the marginal distribution of the covariates *V*. Exceptions occur in special situations, such as when the risk ratio is equal in every stratum (i.e. when there is no effect modification on the risk ratio scale).

### Odds ratio

For all the previously discussed parameters, we have shown that for any baseline covariates *V*, there exist weights such that the marginal effect measure is equal to a weighted average of the stratum-specific effects. We will now show that this does not hold for the odds ratio by considering the following simple counterexample:

Consider a population, with 25% men and 75% women, where a randomized trial is conducted on the effect of drug *A*. The hypothetical results are shown in Table 1. The randomization probability is equal in men and women and we have an infinite sample size, there is therefore no confounding.

This table shows that for the variable sex, the stratum-specific causal odds ratios are equal between men and women, but the overall causal odds ratio is different from the stratum-specific odds ratios. Moreover, since any weighted average of the stratum-specific odds ratios is 3, there does not exist any set of weights that makes the odds ratio collapsible over sex. This counterexample shows that no generally applicable weights such as those for the risk difference and the risk ratio can be provided for the odds ratio.

## Identification of the weights

If the investigator intends to report an average of the stratum-specific effects as an estimate of the marginal effect, it is necessary to know not only that the effect is collapsible in principle, but also to construct appropriate weights, identify them from the data and apply them in the analysis. The weights for the causal risk ratio \(RR(-)\), \(\hbox {Pr}(V=v \vert Y^{a=0}=1)\), have a counterfactual variable in the conditioning event, and may not be identified from the data. However, we proceed to show that the weights are identified in the absence of unmeasured confounding, i.e if \(Y^{a=0} {\perp\mkern-10mu\perp} A \vert V\)

### Proof

\(\square\)

\(\text {Pr}(Y^{a=0}=1)\) is constant over *v* and can therefore be factored out of the weights. In the absence of unmeasured confounders, the weights Pr\((V=v \vert Y^{a=0}=1)\) are therefore equivalent to Miettinen’s weights \(\hbox {Pr}(V=v)\times \text {Pr}(Y=1 \vert A=0, V=v)\) as discussed earlier. These weights can be used both to control for confounding due to *V*, as suggested in a simple example in Table 2, or to standardize the results to a new target population (by taking the risk ratio from the study population, and information on \(\hbox {Pr}(V=v)\) and \(\hbox {P}(Y=1 \vert A=0, V=v)\) from the target population).

An alternative identification of the weights can be used if standardizing experimental results to a population in which everyone is unexposed. In such situations, \(Y^{a=0}= Y\) in all individuals by consistency, and the weights in the target population are identified as \(\text {Pr}(V=v \vert Y=1)\).

## Discussion

We have reviewed well-established results on the collapsibility of measures of association, and shown corresponding results for measures of causal effect. With these causal effect measures, one can disentangle the components of non-collapsibility that are due to the mathematical properties of the effect measure from the components that are due to structural bias and the probabilistic structure of the dataset. We have provided new, simple weights for the causal risk ratio, which guarantee collapsibility over arbitrary baseline covariates, and we showed that such weights do not exist for the causal odds ratio.

Our weights for the causal risk ratio \(RR(-)\) are equivalent to the weights previously discussed by Miettinen when there is no unmeasured confounding; in other words, in all situations where standardizing over *V* provides a valid estimate of the causal effect. Our formulation allows a simpler presentation of the weights and of the proofs. Furthermore, our formulation highlights pitfalls of using weighted averages: When conditioning on *V*, the correct weights cannot be estimated from the data if unmeasured confounding is present. In such scenarios, using erroneous weights can possibly amplify the bias that is caused by unmeasured confounding within the strata.

Finally, we note that in many cases we do not need to use results on collapsibility al all, because we can standardize the distributions of \(Y^{a=1}\) and \(Y^{a=0}\) separately. One way to do this is by reporting the overall marginal risk ratio \(RR(-)\) as

Since this simple procedure does not depend on collapsibility, analogous procedures are valid for any effect measure, including the odds ratio.

## References

- 1.
Whittemore AS. Collapsibility of multidimensional contingency tables. J R Stat Soc Ser B. 1978;40(3).

- 2.
Greenland S, Pearl J, Robins JM. Confounding and collapsibility in causal inference. Stat Sci. 1999;14(1):29–46.

- 3.
Hernán MA, Robins JM. Causal inference. Boca Raton: CRC Press; 2018 (forthcoming).

- 4.
Pearl J. Causality: models, reasoning and inference. 2nd ed. Cambridge: Cambridge University Press; 2009.

- 5.
Newman SC. Biostatistical methods in epidemiology. Hoboken: Wiley; 2001.

- 6.
Greenland S, Pearl J. Adjustments and their consequences-collapsibility analysis using graphical models. Int Stat Rev. 2011;79(3):401–26.

- 7.
Miettinen OS. Standardization of risk ratios. Am J Epidemiol. 1972;96(6):383–8.

## Authors' contributions

AH had the original idea, provided the original version of the theorems and proofs, wrote the first draft of the manuscript and coordinated the research project. MJS and ES contributed original intellectual content and extensively restructured and revised the manuscript. All authors read and approved the final manuscript.

### Acknowledgements

The authors thank James Robins for pointing out the link between the weights proposed in this paper, and previously published weights by Miettinen.

### Competing interests

The authors declare that they have no competing interests.

### Availability of data and materials

Not applicable.

### Consent for publication

Not applicable.

### Ethics approval and consent to participate

Not applicable.

### Funding

MJS is supported by the research Grant NFR239956/F20—Analyzing clinical health registries: Improved software and mathematics of identifiability. ES is supported by Japan Society for the Promotion of Science (KAKENHI Grant Numbers JP17K17898, JP15K08776, and JP18K10104) and The Okayama Medical Foundation.

### Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Author information

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.

## About this article

### Cite this article

Huitfeldt, A., Stensrud, M.J. & Suzuki, E. On the collapsibility of measures of effect in the counterfactual causal framework.
*Emerg Themes Epidemiol* **16, **1 (2019) doi:10.1186/s12982-018-0083-9

#### Received

#### Accepted

#### Published

#### DOI