Abstract
There has been widespread use of causal inference methods for the rigorous analysis of observational studies and to identify policy evaluations. In this article, we consider a class of generalized coarsened procedures for confounding. At a high level, these procedures can be viewed as performing a clustering of confounding variables, followed by treatment effect and attendant variance estimation using the confounder strata. In addition, we propose two new algorithms for generalized coarsened confounding. While previous authors have developed some statistical properties for one special case in our class of procedures, we instead develop a general asymptotic framework. We provide asymptotic results for the average causal effect estimator as well as providing conditions for consistency. In addition, we provide an asymptotic justification for the variance formulae for coarsened exact matching. A bias correction technique is proposed, and we apply the proposed methodology to data from two well-known observational studies.
Keywords: average treatment effect, blocking, clustering, k-means algorithm, random forests, unsupervised learning
1. Introduction
The use of causal inference methods is expanding across a variety of domains in society. While their basis lies in fields such as sociology, economics, statistics, biostatistics and computer science, recent applications of causal inference methods have been to topics such as estimating the effect of government policies on COVID19 rates [1], 2], evaluation of behavior as a mediator of climate on transmission of the SARS-CoV2-Virus [3].
One of the foundational frameworks for causal inference has been the potential outcomes model [4], 5]. This framework posits counterfactual outcomes on an individual level used to define causal effects. In addition, the authors provide a set of assumptions needed to guarantee the identifiability of individual-level causal effects using observed data.
In the potential outcomes framework, Rosenbaum and Rubin [6] were able to show how the propensity score, defined as the probability of treatment given confounders, plays a key role in causal effect estimation and inference with observational data. Under a strong ignorability assumption, the propensity score removes bias attributable to confounding due to its property as a balancing score [6]. Defining causal effects using potential outcomes and using the propensity score allows for a two-stage approach to causal effect estimation. In the first stage, the propensity score is modeled, while at the second stage, the causal effect is estimated in which the propensity score is incorporated. Examples of propensity score adjustment includes matching, inverse probability weighted estimation, subclassification and hybrid approaches, such as augmented inverse probability weighted estimation; further details about these can be found in [7].
This article is motivated by an alternative approach to confounder adjustment, termed coarsened exact matching [8], which is described in §2.2. One of the primary aims of their method was to eliminate the iterative step of re-matching participants until an acceptable amount of balance is achieved. Coarsened exact matching is quite simple in nature and proceeds using the following high-level heuristic:
For each confounding variable, coarsen it into a certain number of categories;
Create strata based on the possible combinations of the coarsened values;
Compute a causal effect by comparing the outcomes of the treatment groups within the strata.
The theoretical justification provided by Iacus et al. [8] for coarsened exact matching is a concept they term monotonic imbalance. They show that bounding the distance between confounders to be small leads to matching procedures that are more flexible than procedures based on the equal percent bias reduction theory developed by Rubin and collaborators [9], [10], [11]. One of the main advantages of coarsened exact matching is that it becomes amenable to large-scale database querying approaches to peforming causal inference: see Salimi et al. [12] as well as Wang et al. [13].
In many practical settings, we will have large numbers of confounding variables, say 50 or more. For these settings, coarsened exact matching will suffer from some issues. First, there is a chance that the common support assumption between treatment and control groups will be violated. Second, the coarsened exact matching algorithm will potentially overcoarsen, leading to strata in which there are no observations, or observations from only one group. In the latter scenario, the resulting strata are discarded from the calculation of the treatment effect as well as the attendant standard error. Based on our analysis in Section 3.1, we find that the coarsened exact matching causal effect estimator is in fact a data-adaptive strata-based estimator. This means that the confounders are used to built strata, from which responses in the treatment and control groups are compared. This representation also allows us to study the asymptotic properties of the causal effect estimator and its variance more carefully than has been previously done in the literature.
In this article, we develop a new theoretical framework we term generalized coarsened confounding, of which coarsened exact matching is a special case. Unlike what is presented in [8], our approach to inference is based on large-sample theory and thus takes a superpopulation point of view in the terminology of [7]. Results from martingale theory [14], 15] and empirical process theory [16] are used to study the asymptotic behavior of generalized coarsened confounding-based estimators. While our results are relatively general, this paper develops a formal theoretical justification for the variance estimates for causal effects from coarsened exact matching of [8]. In addition, we develop two new algorithms for generalized coarsened confounding using machine learning. The first is an adaptation of the k-means algorithm [17] for estimating causal effects. The second is based on random forests [18].
One implication of our analysis in Section 3.1 is that there will be a bias in our estimates in finite samples. This is because the creation of discrete strata will induce an estimation bias. While a similar phenomenon was observed for nearest neighbor matching-based causal effect estimation by Abadie and Imbens [19], we cannot use their techniques for analysis and bias correction. This necessitates a new approach to bias correction that we discuss in Section 3.6. The structure of this paper is as follows. In Section 2, we set up notation, assumptions and review related literature. Section 3.1 describes the coarsened confounding paradigm and develops some results for asymptotic results for coarsened exact matching as well as the new k-means algorithm for causal effect estimation. Section 4 shows some evaluations using real data examples for the causal effect estimators. Section 5 concludes with some discussion.
2. Background and preliminaries
2.1. Data structures and causal estimands
Let the data be represented as (Y i , T i , X i ), i = 1, …, n, a random sample from the triple (Y, T, X), where Y denotes the response of interest, T denotes the treatment group, and X is a p-dimensional vector of covariates. We assume that T takes values in {0, 1}.
We now briefly review the potential outcomes framework of [5], 20]. Let {Y(0), Y(1)} denote the potential outcomes for all n subjects, and the observed response be related to the potential outcomes by
In the potential outcomes framework, causal effects are defined as within-individual contrasts based on the potential outcomes. One popularly used estimand is the average causal effect, defined as
Many assumptions are needed for performing valid causal inference. These include the consistency assumption, the treatment positivity assumption, and the strongly ignorable treatment assumption [6]. Consistency means that the potential outcome for the observed treatment and the observed outcome are the same. Treatment positivity refers to 0 < P(T = 1∣X) < 1 for all values of X. The intuitive interpretation of the positivity assumption is that any individual can potentially receive either treatment, although its validity for high-dimensional X has been recently questioned by D’Amour et al. [21] and Ghosh and Cruz-Cortés [22].
The strongly ignorable treatment assumption is defined as
| (2.1) |
Assumption (2.1) means that treatment assignment is conditionally independent of the set of potential outcomes given the covariates. Finally, the consistency assumption ensures that the observed outcome and the potential outcome under the observed treatment coincide.
As described in [7], causal inference proceeds by modelling the assignment mechanism using observed covariates. A quantity that naturally arises from this modelling is the propensity score [6], the probability of receiving treatment given confounders. The propensity score is defined as
Given the treatment ignorability assumption in (2.1), it also follows by Theorem 3 of [6] that treatment is strongly ignorable given the propensity score, i.e.
Based on these assumptions and definitions, we can formulate causal inference using the following approach:
(a) define an appropriate causal estimand; (b) formulate a propensity score model; (c) check for covariate balance; (d) if (c) holds, estimate the causal estimand by conditioning on the propensity scores. We note that steps (b) and (c) tend to be iterative in practice.
2.2. Coarsened exact matching
Iacus et al. [8] took another approach to causal inference by focusing on in-sample covariate discrepancies and requiring that the maximum discrepancy in sample means between treated and control subjects be bounded above by a constant. They generalize this to arbitrary functions of the data, which they term imbalance bounding and define monotonic imbalance bounding matching methods to be those in which the discrepancies between a monotonic function applied to a variable is bounded above by a confounder-specific term. Thus, one can be more stringent in the balance in variables without impacting the maximal imbalance across all confounders.
There are many important implications of requiring the monotonic imbalance bounding property. First, many methods of confounder adjustment, such as nearest-neighbor or caliper matching as defined in [23], are not monotonic imbalance bounding because they fix the number of treated and control observations within strata, while monotonic imbalance bounding methods imply variable numbers of observations. By contrast, if the caliper matching procedure were to allow for different calipers for each confounder, then this would be monotonic imbalance bounding. Iacus et al. [8] also show that a key goal in causal effect estimation is to reduce model dependence [24], meaning that there should not be extrapolation of potential outcomes to regions in the covariate space where there are no observations. Under some assumptions on the model for potential outcomes, they show that for monotonic imbalance bounding methods, the model dependence is upper bounded by terms involving an imbalance parameter. In addition, the estimation error for average causal effects using monotonic imbalance bounding matching methods can also be upper bounded by terms involving this parameter.
For each component of X, X j (j = 1, …, p), coarsen it into a function C j (X j ) which takes on fewer values than the unique values of X j ;
- Perform exact matching between treated and control observations using the vector
This effectively creates strata based on the unique combinations of Discard strata in which there are only observations with T = 0. For strata with only observations from the T = 1 population, extrapolate the potential outcome Y(0) using the available controls or discard by restricting the causal effect of interest on the treated units for which causal effect can be identified without further modelling based assumptions. For strata with both treated and control observations, compare the outcome between the two populations.
Iacus et al. [8] have developed very easy-to-use software packages for implementing coarsened exact matching in R and Stata. They show that the coarsened exact matching approach satisfies the monotonic imbalance bounding property with respect to a variety of functionals of interest. In addition, they provide a very intuitive explanation for what coarsened exact matching attempts to mimic. While classical propensity score approaches attempt to mimic a randomized study, analyses using coarsened exact matching will mimic randomized block designs, where the blocks are by definition predictive of the potential outcomes. It is well-known that in this situation, randomized block designs will yield more efficient estimators [25].
2.3. Related literature
One related apporach to coarsened exact matching is subclassification. There has been limited exploration on the use of propensity score subclassification from [23], 26]. Hullsiek and Louis [27] explored the issue of the construction of strata to use for propensity score subclassification. They proposed an algorithm for strata construction. It involved creating initial sets of equally sized strata and then to iteratively adjust the sizes based on the estimate variance of the treatment effect. The simulation studies in [27] confirmed the findings of [26] under a generative linear propensity score model framework but also stressed that simply having subclasses of the same size did not necessarily guarantee stable causal effect estimators. We will discuss the applicability of our results to propensity score classification in Section 3.4.
Another related literature is the theory of equal percent bias reduction procedures [9], [10], [11, 28]. Equal percent bias reduction means that a certain type of covariate matching will reduce bias in all dimensions of X by the same amount. We define a matching method to be affinely invariant if the matching procedure is invariant to affine transformations of the covariates. If X given T is assumed to have an elliptically symmetric distribution, then Theorem 3.1 and Corollaries 3.1 and 3.2 of Rubin and Thomas [10] apply so that any affinely invariant matching method will be equal percent bias reducing. Examples of elliptically symmetric distributions include the multivariate normal and t distributions. While elliptical symmetry of the confounders given treatment group is a restrictive assumption, this was relaxed in more recent work by Rubin and Stuart [11]. There, they assumed that the conditional distribution of X given T is a discriminant mixture of elliptically symmetric distributions. Rubin and Stuart [11] prove that a generalization of equal percent bias reducing holds for this setup as well. As mentioned in Iacus et al. [8], while equal percent bias reduction represents a superpopulation property, the monotonic imbalance property is an in-sample property that the authors is more general.
Finally, there is a rich literature on matching methods that this paper adds to. Matching algorithms are a set of procedures that attempt to find for each treated observation in the dataset, the control observation that is ‘closest’ in terms of confounder values. There are many methods available for matching, including nearest-neighbor matching, K:1 matching and optimal matching [29]. Once the matched sets are constructed, a variety of approaches can be used to estimate the causal effected in the matched dataset. A nice summary of methods for estimating causal effects in matched datasets can be found in Section 5 of [30]. Proposed solutions include regression adjustments, weighted analysis approaches and hybrid combinations thereof.
Abadie and Imbens [19] studied the theoretical properties and asymptotics of nearest-neighbor matching procedures. They followed this with work studying the asymptotics of matching on the estimated propensity score [31]. A difference between coarsened exact matching with nearest-neighbor matching is that the former does not use any information on T or Y in order to generate the random sets. By contrast, for nearest-neighbor matching, one finds the ‘closest’ control for every treated observation, where the distance is defined based on an appropriate chosen metric for the confounders. Abadie and Imbens [19] used Euclidean distance assuming the confounders were all continuous. They made the following observations:
There will be an asymptotic non-negligible bias in the estimate of the average causal effect that is a function of the amount of covariate imbalance within strata;
This bias correction will have to be estimated from the data, but provided it can be estimated reliably, the resulting bias-adjusted inference will be asymptotically valid.
As we discuss in § 3.4, there is also a finite-sample bias to coarsened confounding; however, we will be unable to use the approach in [32].
3. Main results
3.1. Review and structure identification
Using the notation from Section 2, we can express the coarsened exact matching causal effect estimator as
| (3.1) |
In (3.1), and denote the sample averages for the response in the jth stratum, j = 1, …, J [8]. suggested the following variance estimate for :
| (3.2) |
where and denote the estimated variances of Y in the treated and control groups for the jth stratum. The quantities n 0j and n 1j represent the number of control and treated observations, respectively, in the jth stratum.
The reinterpretation that we will heavily leverage in this article is that coarsened exact matching generates strata using X 1, …, X n . We can rewrite the average causal effect from (3.1) as solving the estimating equation U(τ) = 0, where
| (3.3) |
The parameter τ in (3.3) represents the population average causal effect. If we were to condition on the ’s in (3.3), then the only randomness is in Y so that we can proceed using standard estimating function arguments [33]. However, the more general case allows for randomness in , which is what weconsider here. Thus, one can interpret (3.3) as a random set-induced estimating equation.
We note the centrality of equation (3.3) to our generalized coarsened confounding framework. Provided we have an algorithm that takes as its input X 1, …, X n and provides as output the strata , we can use (3.3) to compute the average causal effect. While Iacus et al. [34] use hypercubes based on the components of X to define strata, in practice any algorithm for clustering confounders could be used. We will study two other algorithms in this paper, k-means and random forests clustering. What also is evident from (3.3) is that the asymptotic behavior of the estimator will necessitate studying the asymptotic behavior of the sets , and this is what we do in Section 3.4. We next describe two machine-learning based algorithms for clustering.
3.2. A quantization-based causal effects estimator using k-means
For ease of exposition, we assume that each of the p confounders are coarsened into M levels. Thus, there are M p possible values for the levels. In the terminology of information theory [35], each of these levels constitutes a code, and the set of potential values is called the codebook. In coarsened exact matching, a codebook with M p possible values is constructed. The values constitute strata in which responses for treated and controls are compared. Thus, the problem of causal effect estimation is effectively reduced to one of constructing codebooks, which has been a foundational topic in information theory for decades, dating back to the work of Shannon [36]. Thus, the random sets can be viewed as codebook representations for the confounders. We term this confounder representation learning, which is a specialized version of a more general phenomenon, representation learning, that has received tremendous attention in the machine learning community [37].
We have argued that coarsened exact matching refers to one type of codebook construction. Another term for this is quantization; the ’s denote the quantized levels of the confounders. The problem of quantization has a long rich history in information theory [38], [39], [40]. In this area, a workhorse technique for quantization has been the k − means algorithm [17], 41], which we next describe.
Let X denote the p − dimensional vector of confounders, which we assume to have marginal distribution P X . Define ‖a‖ to be the norm of a and assume that E‖X‖2 < ∞. We then define a center of P X to be a point b ∈ R p such that
| (3.4) |
It turns out that the solution to (3.4) has an equivalent interpretation in terms of function approximation. Let be the set of Borel-measurable functions f : R p → R with |f(R p )| ≤ m. The elements of are termed m − point quantizers. The m − quantization error for P X of order two is defined by
| (3.5) |
A quantizer is called m − optimal for P X if
| (3.6) |
A set A ⊂ R p with |A| ≤ m and where
is called an m − optimal point set of centers of P X . From Lemma 3.1. of [39], we have that
| (3.7) |
In practice, the empirical version of quantizers has an intimate connection with the k − means algorithm [17], 41]. The basic k-means algorithm proceeds in the following steps:
-
(a)
assign an initial set of means in R p ;
-
(b)
assign each observation to the cluster with the nearest mean;
-
(c)
recalculate the means for the observations assigned to the cluster;
-
(d)
iterate between steps b. and c. until convergence.
While the k-means algorithm is known to statisticians as primarily a clustering technique, it plays a central role in the quantization literature in information theory. Under the assumption of the existence of a unique population maximizer [42], demonstrated the convergence of the optimizer of the k-means algorithm to the population limit using empirical process theory. Arguments of the convergence using fixed point theory are provided in [43], 44].
The k-means algorithm yields a set of clusters that constitute the strata within which we can compare the outcomes between treated and controls, exactly as in [8]. We thus have the following simple algorithm for causal effect estimation. Notice that Algorithm 1 is identical to coarsened exact matching with exception of Step 1. Geometrically, the CEM is constructing hypercubes for strata, whereas our approach creates ellipses for the confounder levels.
Algorithm 1:
Proposed confounder adjustment algorithm using k-means clustering.
|
|
|
In information theory, a key quantity is the rate distortion function [45]. It summarizes how much information can be preserved using data compression methods. It corresponds to the entropy change after data compression. Coarsened exact matching corresponds to taking confounders and recoding it as binary indicators indexing the hypercubes. Assuming M levels for each of the p confounders, the data compression, is approximately p log M. By contrast, k − means takes the n observations and maps them to k cluster means, which suggests that the data compression is effectively log k. Note that the data compression for k − means clustering is independent of dimension of the confounders. By contrast, the data compression scales linearly in the number of confounders for coarsened exact matching. In information theory, a major goal is to devise procedures that maximize information compression while at the same time preserving information. With respect to the former, our k-means algorithm offers an advantage relative to coarsened exact matching.
3.3. Random forests
While the use of k-means can potentially have theoretical advantages relative to coarsened exact matching, it suffers from several drawbacks. First, it is most effective when the confounders are continuous, and the performance might degrade when there are categorical variables. Second, the clusters are assumed to elliptical in nature, which may or may not be a reasonable assumption. Third, there is an equivalence between k-means clustering with maximum likelihood of a specific normal mixture model [46], there is a linearity of the variable information that is used in the algorithm, which may or may not hold. In order to allow for more flexibility in strata construction and more easily accommodate mixed continuous and discrete variables, we propose to use random forests [18].
Random forests represent a class of ensemble methods: instead of generating one classification tree, it generates many trees. At each node of a tree, a random subset of the covariates are selected and the node is split based on the best split among the selected covariates. For a testing data point with a covariate vector X, each tree votes for one of the classes and the prediction can be made by the majority votes among the trees. In addition, some appealing by products of random forests include the following: (a) a variable importance measure; (b) an out of bag estimator of the model performance; (c) a measure of observational proximity. Random forests represent among the most popular off-the-shelf machine learning methods and require minimal amounts of tuning. While they are popular, theoretical justification for their use is an area of intense focus [47], [48], [49].
Much of the previous work on random forests assumes a supervised setting in which there is an outcome variable. We wish to use an unsupervised version of random forests. To do this, we adopt what was suggested in [18], which is to treat the observed data as coming from one class and to create synthetic data that from a second group. Then random forests classification is performed on the augmented dataset. We then take the so-called proximity matrix and cluster observations into strata using Ward’s method of clustering [50]. This generates a dendrogram representing a hierarchical grouping; we will cut the dendrogram at a certain level to create strata. This replaces Step 1 of Algorithm 1.
3.4. Asymptotic analysis
Note that (3.1) and (3.2) can be generalized to allow for more general constructions of strata , j = 1, …, J, which we reexpress as
| (3.8) |
with estimated variance
| (3.9) |
Thus, formulae (3.8) and (3.9) allow for CEM, the k-means estimator and random forests-based clustering with the attendant standard errors. More generally, we can allow for to be based on any data-driven algorithm for partitioning based on X. However, it cannot be based on T or Y. Having done this, the next question is to understand the asymptotic properties of the estimators. We note the following decomposition for :
Let and . Next, we define the random variables
We can then write
| (3.10) |
where W n can be interpreted as a normalized average of mean zero iid random variables, and R n represent the conditional bias terms due to the strata creation and comparing the average outcomes to the potential outcome functions for the treatment and control groups, respectively. Finally, define the σ − field
Several facts obtain from (3.10). First, as in [15],
represents a martingale for each n ≥ 1. Equivalently, the collection represents a martingale array. Thus, we can use results from martingale theory [14] to study the asymptotics of . Second, there is a nonneglible bias term, R n , that represents how well a piecewise constant function can approximate the potential outcome functions. As is well-known in nonparametric theory [51], for a finite number of strata , for t = 0, 1, μ t (⋅) will not be consistently estimated. Put another way, we need the number of strata J n to approach infinity as the sample size tends to infinity as well. This implies that one ought to use a large number of strata. However, we find that as the number of strata gets bigger, we will have strata which contain only treated or control observations. We must then exclude those strata, which reduces the effective sample size in our analysis.
We now prove this more formally by leveraging results from Chapters 12 and 21 of [51]. Assume that the joint distribution of the confounders X has a measure μ on R p . A partition of R p is a countable collection of sets such that and for j ≠ k. We refer to each as a cell. Define M > 0, and take S M ⊆ R p to be the closed ball of radius M centered at the origin. For each partition, we define as the restriction of to S M . Define to be the collection of all sets formed by taking unions of cells in . Let be a potentially infinite collection of partitions of R p ; define to be the family of partitions of S M obtained by restricting to S M . Define to be the class of subsets of R p where
For , let be the number of different sets in
The n−th shatter coefficient of is
| (3.11) |
in words, (3.11) represents the maximal number of different subsets of n points that can be picked out by the class of sets . We define the following combinatorial quantity on the partitions :
The combinatorial quantity represents the complexity of the partitions as the sample size increases. We let μ n denote the empirical measure of X 1, …, X n . We then have the following result from [52]:
Theorem 1: —
[52] Let X 1, …, X n be iid random vectors in R p with measure μ and empirical measure μ n . Let be a collection of partitions on R p . Then for each M < ∞ and ϵ > 0,
(3.12) An implicit assumption in (3.12) is that appropriate measurability conditions on the probability on the left-hand side of the inequality is needed. Conditions to ensure the measurability of the supremum of events can be found in Van der Vaart and Wellner [16]. Leveraging Theorem 1, we prove the following result.
Theorem 2: —
Assume that there exist a sequence of families such that
(3.13) Then
(3.14) where → d denotes convergence in distribution, and
Proof: —
Based on (3.10),
(3.15) In (3.15), W n converges in distribution to a normal random variable with mean zero and variance σ 2 by the martingale central limit theorem [14]. To deal with R n , we use Theorem 1 and the assumption (3.13) to show that R n → 0 in probability. Application of Slutsky’s theorem then yields the desired result.
Remark 1: —
In Theorem 2, we also provide a sufficient condition for the bias term in (3.10) to be asymptotically negligible. We note that condition (3.13) in Theorem 2 is in fact an asymptotic condition on the complexity of the sets that are induced by the partitioning algorithm. We now discuss the implications of the condition for coarsened exact matching, k-means and random forests based clustering. For coarsened exact matching, we assume that for each of the p covariates, we partition them into M bins. Some standard combinatorial arguments (e.g., p. 367 of Devroye et al. [51]) can be used to show that for this set of partitions, ,
We thus have that (3.13) is satisfied when
For the k − means partition approach to clustering, we leverage the work of Lugosi and Nobel [52], who demonstrate concentration bounds for Voronoi partitions of points in R p . Based on our notation and their results, defining J kn to be the closest neighbors of the kth cluster center and allowing for dependence on sample size, if
as n → ∞, then (3.13) is satisfied. Finally, for the random forests approach, we begin by assuming a single tree with at most S n splits, where
as sample size approaches infinity. Then the results of [52] can again be used to verify that (3.13) holds. Random forests now aggregates over B trees, so the condition on S n will again imply that for the aggregated tree, (3.13) holds. We wish to reiterate that condition (3.13) holding is theoretical and relies on asymptotic considerations in which sample size and other tuning parameters are approaching infinity with potential constraints on their interactions.
Theorem 2 provides a formal justification of the variance estimators proposed in [8] for coarsened exact matching. Note that our theorem is much more general and shows the asymptotic normality for the various data-partitioned causal effect estimators we have proposed: coarsened exact matching, k-means clustering, and random forests clustering. We note in passing that an alternative to using empirical process theory results to characterize the nature of the bias term in (3.10) would be to use sample splitting/cross-fitting [53] to estimate the bias term directly. Many authors (e.g., [54]) have shown that based on sample splitting, one can weaken the smoothness conditions necessary for the bias term to converge to zero in probability. We do not pursue that here.
We now seek to mention some other implications of the martingale theory results we have presented here. First, the construction of the filtrations and σ − algebras in the theory means that rules for creating strata that are based on X only will have the same theoretical properties as those demonstrated here. We described propensity score subclassification as a related methodology in § 2.3. Our theory would apply to subclassification estimators with a known propensity score. In this case, strata construction would proceed based on e(X) = P(T = 1|X), which is simply a function of X. However, if we were to fit a model for the propensity score to data, then constructing strata based on would not fall under our framework. While the notion of using population or known propensity scores do not seem reasonable in practice, we note in passing that much of the work in the seminal paper of [6] effectively works with e(X) and not . Finally, we do wish to point out that this approach to causal effect estimation avoids propensity scores, but in effect does not model T|X directly. Thus, it represents a very different theoretical framework than most causal effect-based estimators, which use estimating functions and semiparametric theory results [33]. However, we feel there is merit in understanding the theoretical basis for generalized coarsened confounding, and we believe there are extensions of the approach that could handle more complicated confounding structures, which we leave to future investigations.
3.5. Average causal effect on the treated
An alternative estimand in causal inference is the average causal effect among the treated:
| (3.16) |
ACET is of particular interest when the population of the study are those who actually receive the treatment. For example, a researcher from a smoking cessation counseling tries to persuade the smokers to quit smoking and his research question is as follows: for those who actually smoke, what is the difference in the expected life expectancy if they did not smoke? In this example, the researcher is interested in estimating ACET. This is in fact the primary estimand studied by [8] for coarsened exact matching. Their estimators are
| (3.17) |
with estimated variance
| (3.18) |
where
We can then derive a result similar to Theorem 2 using the following decomposition:
3.6. Bias correction
As alluded by Theorem 2, provided the number of strata increases with sample size in such a way so that the complexity of the partitions grows slowly, the coarsened causal effects estimator will be consistent. However, in practice, the number of strata is finite, so there will be a finite-sample bias.
A natural question that arises is whether or not it is possible construct a bias-corrected estimate. For nearest neighbor matching, Abadie and Imbens [32] constructed a bias-corrected estimator of the average causal effect. Their methodology consisted of adjusting for the fitted values for each subject under the potential outcome function. That will not work for our situation since in effect, the potential outcome function will be constant for every subject within treatment group for a given stratum. Thus, the fitted value adjustment of the type described in [32] cannot be used here.
We instead propose a novel bias-correction approach that is inspired by the simulation extrapolation approach from the measurement error modeling literature [55], which is commonly abbreviated as SIMEX. In measurement error modeling, the SIMEX approach fits a sequence of parameter estimates with a given measurement error and extrapolates a parameter estimate based on assuming the measurement error variance approaches zero. For our setting, we will use J, the total number of strata, in an analogous way to the measurement error variance. Here is the outline for the approach.
Create a grid of values of J.
For each value of J on the grid, compute the estimated average causal effect and the variance.
Fit a linear regression of the estimates as a function of J −1.
Use as the proposed estimate the predicted value at J −1. If the previous step was fit using the lm function in R and saved as an object foo, then one would use predict(foo,invJ = 0) to obtain the estimate.
The idea behind the proposed bias correction approach is that we expect unbiased causal effect estimation to occur when J, the number of strata, approaches infinity, or equivalently when J −1 approaches zero. For a given value of J, our theory from Section 3 yields that the limiting distribution is asymptotically normal. Thus, we are making the assumption that the interpolated value will also have an asymptotic normal distribution. A heuristic argument is that since the causal effect estimator in step 5 is a linear combination of the estimates at each value of J, it should also be asymptotically normal. Formal justification of this result is beyond the current scope of the paper and is currently under investigation.
4. Examples
For all the examples, we assume that for Wald statistics, we can apply the methods from Sections 3.4 and 3.6 so that a normal distribution under the null hypothesis holds. In addition, we employ a significance level of 0.05.
4.1. Right-heart catheterization study
In this example, we apply the proposed methodology to data from the Study to Understand Prognoses and Preferences for Outcomes and Risks of Treatments (SUPPORT). This is a very commonly used dataset from papers on causal inference methods. SUPPORT is a multicenter observational trial that followed patients in critical care for prospective outcomes. One major causal effect of interest in the SUPPORT study is whether or not right heart catheterization (RHC) has an effect on death within 30 days. Further information about the study can be found in [56] The dataset contains information on 5735 patients, 2184 of whom received RHC. In the original paper by [56], they performed propensity score matching and found an increased risk of 30 day mortality associated with RHC treatment (odds ratio, 1.24; 95 % confidence interval = 1.03–1.49).
There are 50 confounders in the dataset. When we attempted to match on all confounders using the method in [8], we were unable to get the algorithm to run or to create matched strata with treatment and control observations. Next, we used the K-means based quantization to construct strata. A sequence of K-means results with varying values of K were fit, combined with the bias correction method described in § 3.6. This yielded an average causal effect estimate of −0.041 with a standard error of 0.01. Given that the outcome is binary (1 for survival past 30 days, 0 for death within 30 days), our method reveals that RHC is associated with a causal risk difference of decreasing 30-day survival by 0.04; this effect is significant (p = 0.003).
We also applied the random forests-based approach for creating strata, as it allows for more distributional robustness in the confounders. Based on the computed proximity distance matrix, we constructed confounders using hierarchical clustering varying the location where the dendrogram is cut. We again apply the extrapolation method to get a causal risk difference of −0.021 with a standard error of 0.014. Based on the Z-statistic, the random forest approach gives less significant answers to the k-means analysis, with a p-value of 0.13. However, the directionality of the causal effect from random forests aligns with that of k-means. We have included the R code for the analysis in the Appendix.
4.2. Cesarean observational study
The next example is to evaluate the effect of electronic fetal monitoring (EFM) on cesarean section (CS) rates using data from Beth Israel Hospital from 14484 women who delivered between January 1970 and December 1975. The data were published in [57], and they identified several confounding factors: nulliparity, arrest of labor progression, malpresentation and year of birth. The confounders are all binary. Given no confounders are continuous, this is a situation where we expect the k-means algorithm to not work as well.
We begin by applying coarsened exact matching. The algorithm yielded a set of 45 strata, with one stratum containing only treated observations. This yielded a risk difference estimate of 8.62 × 10−5, with an attendant standard error of 0.005 (p-value = 0.98). Next, we applied the proposed k-means clustering estimator for the risk difference. This yields a causal risk difference of 0.004 with a standard error of 0.005 (p-value = 0.44). Finally, the random forests-based causal effect estimate is 5.27 × 10−4 with a standard error of 0.005 (p-value = 0.92). We note that the magnitudes of the k-means and random forests estimator are substantially larger in magnitude relative to the original CEM estimate of the average causal effect. We note that while the former two are bias corrected, the CEM estimate is not. We also ran a separate analysis with k-means clustering using K = 45 to match the number of strata in CEM, followed by the two-sample difference in means to match CEM. This yielded an estimate of 2.2 × 10−4 with a standard error of 0.005. Reasons for the discrepancy between the CEM and the other approaches include the lack of bias correction for CEM as well as variation in the grouping of observations into strata. Thus, while we find variation in the parameter estimates across the three methods, the direction of the effect estimate is the same. In addition, all three methods do not show evidence for statistical significance for α = 0.05. We have included the code and results for these results in the Appendix.
5. Discussion
The generalized coarsened confounding method discussed in this article can provide consistent estimators for the average causal effect with an asymptotic justification of the number of strata J ≡ J n → ∞ as the sample size tends to infinity. As has been noted by certain authors [58], there is a bias in applying coarsened exact matching for real analyses with finite-sample datasets. We demonstrated this formally in Section 3. In order to address the induced bias, we have introduced a novel bias correction process inspired by the SIMEX procedure from [55]. In summary, our generalized coarsened confounding methodology and bias correction process provides a workflow for approximately consistent casual effect estimation. Future work will seek to provide asymptotic justification for the bias correction methodology.
However, there are some issues that still need to be addressed in real-data analyses. The first involves how to choose the right variables to represent the population in matching. The effectiveness of matching usually relies on the number of observations retained after matching. The number of variables selected to represent the cohort should be evaluated since the number of matched observations will decrease as the number of matching variables increases.
The choice of binning strategy is also critical here. How to find the balance between the similarity of cohorts and the generalizability in population is worth exploring further. In our work, we suggest a consistency properity with the number of strata and sample size both tending to infinity. It is not directly obvious what to do in finite samples. As an alternative to the CEM approach to finding strata, we introduced K-means algorithm for confounder strata clustering, as well as the random forests algorithm. However, these two algorithms do not immediately output a measure of balance. In some articles, an L 1 statistic was developed as an indicator for balance [34]. This statistic ranges from zero to one, where zero refers to perfect balance with equal proportion of treatment and control observations in each stratum, while one refers to the mutually exclusive situation in each stratum. Based on our bias correction approach, we can simulate the range of L 1 values from zero to one and evaluate it with the different number of strata. We leave this to future work. We could also use this approach with another statistic named Least Common Support (LCS) which indicates the percentage of strata based on different number of observations [34].
A reinterpretation of coarsened exact matching, described in §3.2, is used in the paper. It exploits an encoding paradigm in which confounders are converted into code vectors, which index observations from which causal effects can be computed. Recently, a full encoding-decoding paradigm for causal inference was described in [59]. This leads into deeper connections between causal inference, information theory and machine learning that we intend to explore in future work.
Appendix
R code for the RHC data example in Section 4.1.
R code for the cesarean data example in Section 4.2.
Footnotes
Conflict of interest: The authors have no conflicts of interest to declare.
Author contribution: D.G. designed the project, developed the theoretical results implemented the methodology, and wrote the first draft of the paper. L. W. contributed to the writing of the final manuscript.
Data availability statement: The data analyzed in the paper can be found in the ATbounds package in R (see Appendix for code).
Funding information: The authors acknowledge funding support from the following sources: the National Institutes of Health, the National Science Foundation, the Veterans Administration, and the Grohne-Stepp Endowment from the University of Colorado Cancer Center.
Contributor Information
Debashis Ghosh, Email: debashis.ghosh@cuanschutz.edu.
Lei Wang, Email: lei.2.wang@cuanschutz.edu.
References
- 1.Hsiang S, Allen D, Annan-Phan S, Bell K, Bolliger I, Chong T, et al. The effect of large-scale anti-contagion policies on the COVID-19 pandemic. Nature. 2020;584:262–7. doi: 10.1038/s41586-020-2404-8. [DOI] [PubMed] [Google Scholar]
- 2.Chernozhukov V, Kasahara H, Schrimpf P. Causal impact of masks, policies, behavior on early covid-19 pandemic in the US. J Econom. 2021;220:23–62. doi: 10.1016/j.jeconom.2020.09.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Grover EN, Buchwald AG, Ghosh D, Carlton EJ. Does behavior mediate the effect of weather on SARS-CoV-2 transmission? Evidence from cell-phone data. PLoS One. 2024;19:e0305323. doi: 10.1371/journal.pone.0305323. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Neyman J. Sur les applications de la théorie des probabilités aux experiences agricoles: Essai des principes. Roczniki Nauk Rolniczych. 1923;10:1–51. [Google Scholar]
- 5.Rubin DB. Estimating causal effects of treatments in randomized and nonrandomized studies. J Educ Psychol. 1974;66:688–701. doi: 10.1037/h0037350. [DOI] [Google Scholar]
- 6.Rosenbaum PR, Rubin DB. The central role of the propensity score in observational studies for causal effects. Biometrika. 1983;70:41–55. doi: 10.2307/2335942. [DOI] [Google Scholar]
- 7.Imbens GW, Rubin DB. Causal inference in statistics, social, and biomedical sciences. Cambridge: Cambridge University Press; 2015. [Google Scholar]
- 8.Iacus SM, King G, Porro G. Multivariate matching methods that are monotonic imbalance bounding. J Am Stat Assoc. 2011;106:345–61. doi: 10.1198/jasa.2011.tm09599. [DOI] [Google Scholar]
- 9.Rubin DB. Multivariate matching methods that are equal percent bias reducing, I: some examples. Biometrics. 1976;32:109–20. doi: 10.2307/2529342. [DOI] [Google Scholar]
- 10.Rubin DB, Thomas N. Affinely invariant matching methods with ellipsoidal distributions. Ann Stat. 1992;20:1079–93. doi: 10.1214/aos/1176348671. [DOI] [Google Scholar]
- 11.Rubin DB, Stuart EA. Affinely invariant matching methods with discriminant mixtures of proportional ellipsoidally symmetric distributions. Ann Stat. 2006;34:1814–26. doi: 10.1214/009053606000000407. [DOI] [Google Scholar]
- 12.Salimi B, Suciu D. ZaliQL: a SQL-based framework for drawing causal inference from big data. arXiv preprint arXiv:160903540. 2016 [Google Scholar]
- 13.Wang T, Morucci M, Awan MU, Liu Y, Roy S, Rudin C, et al. FLAME: a fast large-scale almost matching exactly approach to causal inference. J Mach Learn Res. 2021;22:1–41. [Google Scholar]
- 14.Fleming TR, Harrington DP. Counting processes and survival analysis. Vol. 625 Hoboken: John Wiley & Sons; 2013. [Google Scholar]
- 15.Abadie A, Imbens GW. A martingale representation for matching estimators. J Am Stat Assoc. 2012;107:833–43. doi: 10.1080/01621459.2012.682537. [DOI] [Google Scholar]
- 16.Van Der Vaart AW, Wellner JA. Weak convergence and empirical processes. Cham: Springer; 1996. Weak convergence; pp. 16–28. [Google Scholar]
- 17.Macqueen J. Proceedings of 5-th Berkeley symposium on mathematical statistics and probability. Berkeley: University of California Press; 1967. Some methods for classification and analysis of multivariate observations. [Google Scholar]
- 18.Breiman L. Random forests. Mach Learn. 2001;45:5–32. doi: 10.1023/a:1010933404324. [DOI] [Google Scholar]
- 19.Abadie A, Imbens GW. Large sample properties of matching estimators for average treatment effects. Econometrica. 2006;74:235–67. doi: 10.1111/j.1468-0262.2006.00655.x. [DOI] [Google Scholar]
- 20.Holland PW. Statistics and causal inference. J Am Stat Assoc. 1986;81:945–60. doi: 10.2307/2289064. [DOI] [Google Scholar]
- 21.D’Amour A, Ding P, Feller A, Lei L, Sekhon J. Overlap in observational studies with high-dimensional covariates. J Econom. 2021;221:644–54. doi: 10.1016/j.jeconom.2019.10.014. [DOI] [Google Scholar]
- 22.Ghosh D, Cruz Cortés E. A Gaussian process framework for overlap and causal effect estimation with high-dimensional covariates. J Causal Inference. 2019;7:20180024. doi: 10.1515/jci-2018-0024. [DOI] [Google Scholar]
- 23.Cochran WG, Rubin DB. Controlling bias in observational studies: a review. Sankhyā: Indian J Stat Ser A. 1973:417–46. [Google Scholar]
- 24.Ho DE, Imai K, King G, Stuart EA. Matching as nonparametric preprocessing for reducing model dependence in parametric causal inference. Polit Anal. 2007;15:199–236. doi: 10.1093/pan/mpl013. [DOI] [Google Scholar]
- 25.Box GE, Hunter WG, Hunter JS. Statistics for experimenters. Vol. 664 New York: John Wiley and sons; 1978. [Google Scholar]
- 26.Cochran WG. The effectiveness of adjustment by subclassification in removing bias in observational studies. Biometrics. 1968;24:295–313. doi: 10.2307/2528036. [DOI] [PubMed] [Google Scholar]
- 27.Hullsiek KH, Louis TA. Propensity score modeling strategies for the causal analysis of observational data. Biostatistics. 2002;3:179–93. doi: 10.1093/biostatistics/3.2.179. [DOI] [PubMed] [Google Scholar]
- 28.Rubin DB, Thomas N. Combining propensity score matching with additional adjustments for prognostic covariates. J Am Stat Assoc. 2000;95:573–85. doi: 10.2307/2669400. [DOI] [Google Scholar]
- 29.Rosenbaum PR. Optimal matching for observational studies. J Am Stat Assoc. 1989;84:1024–32. doi: 10.2307/2290079. [DOI] [Google Scholar]
- 30.Stuart EA. Matching methods for causal inference: a review and a look forward. Stat Sci. 2010;25:1–21. doi: 10.1214/09-sts313. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Abadie A, Imbens GW. Matching on the estimated propensity score. Econometrica. 2016;84:781–807. doi: 10.3982/ecta11293. [DOI] [Google Scholar]
- 32.Abadie A, Imbens GW. Bias-corrected matching estimators for average treatment effects. J Bus Econ Stat. 2011;29:1–11. doi: 10.1198/jbes.2009.07333. [DOI] [Google Scholar]
- 33.Tsiatis AA. Semiparametric theory and missing data. Vol. 4 New York: Springer; 2006. [Google Scholar]
- 34.Iacus S, King G, Porro G. CEM: software for coarsened exact matching. J Stat Software. 2009;30:1–27. doi: 10.18637/jss.v030.i09. [DOI] [Google Scholar]
- 35.Wolfowitz J. Coding theorems of information theory. Vol. 31 Berlin: Springer Science & Business Media; 2012. [Google Scholar]
- 36.Shannon CE. A mathematical theory of communication. Bell Syst Tech J. 1948;27:379–423. doi: 10.1002/j.1538-7305.1948.tb01338.x. [DOI] [Google Scholar]
- 37.Bengio Y, Courville A, Vincent P. Representation learning: a review and new perspectives. IEEE Trans Pattern Anal Mach Intell. 2013;35:1798–828. doi: 10.1109/tpami.2013.50. [DOI] [PubMed] [Google Scholar]
- 38.Gray R. Vector quantization. IEEE ASSP Mag. 1984;1:4–29. doi: 10.1109/massp.1984.1162229. [DOI] [Google Scholar]
- 39.Graf S, Luschgy H. Foundations of quantization for probability distributions. Berlin: Springer; 2007. [Google Scholar]
- 40.Gersho A, Gray RM. Vector quantization and signal compression. Vol. 159 Boston: Springer Science & Business Media; 2012. [Google Scholar]
- 41.Lloyd S. Least squares quantization in PCM. IEEE Trans Inf Theor. 1982;28:129–37. doi: 10.1109/tit.1982.1056489. [DOI] [Google Scholar]
- 42.Pollard D. Strong consistency of k-means clustering. Ann Stat. 1981:135–40. [Google Scholar]
- 43.Kieffer J. Exponential rate of convergence for Lloyd’s method I. IEEE Trans Inf Theor. 1982;28:205–10. doi: 10.1109/tit.1982.1056482. [DOI] [Google Scholar]
- 44.Sabin M, Gray R. Global convergence and empirical consistency of the generalized Lloyd algorithm. IEEE Trans Inf Theor. 1986;32:148–55. doi: 10.1109/tit.1986.1057168. [DOI] [Google Scholar]
- 45.Berger T. Rate-distortion theory. Englewood Cliffs: Wiley Encyclopedia of Telecommunications; 2003. [Google Scholar]
- 46.Fraley C, Raftery AE. Model-based clustering, discriminant analysis, and density estimation. J Am Stat Assoc. 2002;97:611–31. doi: 10.1198/016214502760047131. [DOI] [Google Scholar]
- 47.Biau G, Devroye L, Lugosi G. Consistency of random forests and other averaging classifiers. J Mach Learn Res. 2008;9 [Google Scholar]
- 48.Biau G. Analysis of a random forests model. J Mach Learn Res. 2012;13:1063–95. [Google Scholar]
- 49.Biau G, Scornet E. A random forest guided tour. Test. 2016;25:197–227. doi: 10.1007/s11749-016-0481-7. [DOI] [Google Scholar]
- 50.Ward JH. Hierarchical grouping to optimize an objective function. J Am Stat Assoc. 1963;58:236–44. doi: 10.1080/01621459.1963.10500845. [DOI] [Google Scholar]
- 51.Devroye L, Györfi L, Lugosi G. A probabilistic theory of pattern recognition. Vol. 31 New York: Springer Science & Business Media; 2013. [Google Scholar]
- 52.Lugosi G, Nobel A. Consistency of data-driven histogram methods for density estimation and classification. Ann Stat. 1996;24:687–706. doi: 10.1214/aos/1032894460. [DOI] [Google Scholar]
- 53.Zivich PN, Breskin A. Machine learning for causal inference: on the use of cross-fit estimators. Epidemiology. 2021;32:393–401. doi: 10.1097/ede.0000000000001332. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Chernozhukov V, Chetverikov D, Demirer M, Duflo E, Hansen C, Newey W, et al. Double/debiased machine learning for treatment and structural parameters. Econom J. 2018;21:C1–68. doi: 10.1111/ectj.12097. [DOI] [Google Scholar]
- 55.Carroll RJ, Küchenhoff H, Lombard F, Stefanski LA. Asymptotics for the SIMEX estimator in nonlinear measurement error models. J Am Stat Assoc. 1996;91:242–50. doi: 10.2307/2291401. [DOI] [Google Scholar]
- 56.Connors AF, Speroff T, Dawson NV, Thomas C, Harrell FE, Wagner D, et al. The effectiveness of right heart catheterization in the initial care of critically III patients. JAMA. 1996;276:889–97. doi: 10.1001/jama.1996.03540110043030. [DOI] [PubMed] [Google Scholar]
- 57.Neutra RR, Greenland S, Friedman EA. Effect of fetal monitoring on cesarean section rates. Obstet Gynecol. 1980;55:175–80. [PubMed] [Google Scholar]
- 58.Black BS, Lalkiya P, Lerner JY. The trouble with coarsened exact matching. Northwestern Law & Econ Research Paper Forthcoming. 2020. https://ssrn.com/abstract=3694749 Available at SSRN. [Google Scholar]
- 59.Liu Q, Chen Z, Wong WH. An encoding generative modeling approach to dimension reduction and covariate adjustment in causal inference with observational studies. Proc Natl Acad Sci. 2024;121:e2322376121. doi: 10.1073/pnas.2322376121. [DOI] [PMC free article] [PubMed] [Google Scholar]






