Supplement
Bayesian nonparametric mixtures of categorical directed graphs for heterogeneous causal inference
Abstract
Quantifying causal effects of exposures on outcomes, such as a treatment and a disease respectively, is a crucial issue in medical science for the administration of effective therapies. Importantly, any related causal analysis should account for all those variables, e.g. clinical features, that can act as risk factors involved in the occurrence of a disease. In addition, the selection of targeted strategies for therapy administration requires to quantify such treatment effects at personalized level rather than at population level. We address these issues by proposing a methodology based on categorical Directed Acyclic Graphs (DAGs) which provide an effective tool to infer causal relationships and causal effects between variables. We account for population heterogeneity by considering a Dirichlet Process mixture of categorical DAGs, which clusters individuals into homogeneous groups characterized by common causal structures, dependence parameters and causal effects. We develop computational strategies for Bayesian posterior inference, from which a battery of causal effects at subject-specific level is recovered. Our methodology is evaluated through simulations and applied to a dataset of breast cancer patients to investigate cardiotoxic side effects that can be induced by the administrated anticancer therapies.
Keywords: Breast cancer; Clustering; Personalized medicine; Subject-specific graph.
1 Introduction
1.1 Motivation and framework
Estimating cause-and-effect relations between variables is a pervasive issue in many applied domains and primarily medical science. Typically in this setting, interest lies in measuring the (direct or indirect) effect of a therapy on the progression of a disease. Our methodology is motivated by a dataset of patients diagnosed with breast cancer and treated with different oncological therapies. In this context, the protein Human Epidermal growth factor Receptor 2 (HER2) has been identified as one of the main responsibles of tumor progression and growth. Recent studies have shown that therapies targeting HER2 have a strong antitumor effect, improving the overall and progression-free survival. These therapies are commonly based on both monoclonal antibodies, such as trastuzumab, as well as anticancer drugs, in particular antracyclines; see Slamon et al. (1987) and Katzorke et al. (2013). However, they can cause cardiotoxicity as a side effect, with consequent heart failure and loss of left ventricular contractile function (Dempke et al., 2023; Bowles et al., 2012). Establishing the (causal) effect of anti-HER2 therapies on cardiotoxicity is therefore of key importance for the administration of appropriate anticancer treatments, and to develop strategies for preventing and detecting cardiotoxiciy in high-risk patients. In addition, there exist several factors, such as advanced age, hypertension, valvulopathy and arrhythmia, that predispose to cardiotoxicity; see in particular Dempsey et al. (2021), Lotrionte et al. (2013) and references therein. Accordingly, in a related causal-effect analysis one should account for all those clinical features that may act as risk factors in the occurrence of cardiotoxicity.
When several variables are entertained, as in the framework above, one should account for possible interactions/dependencies between them in order to provide a coherent quantification of causal effects. Typically however, such dependence structure is unknown, or can be partially drawn only based on experts’ knowledge and one need to learn it from the data. Graphical models based on Directed Acyclic Graphs (DAGs) offer a powerful tool for this structure learning task. Importantly to our purposes, DAGs allow to properly define the causal effect on a target variable of interest induced by a hypothetical intervention on another variable in the system. Additionally, learning such causal effect can be achieved from observational data alone, under suitable causal assumptions on the data generating process (Pearl, 2000). An important issue in this general framework is however represented by heterogeneity, which implies that causal effects may vary across individuals, as the consequence of an existing, yet unknown, clustering structure in the population. Causal-inference methodologies accounting for heterogeneity can provide a more reliable quantification of treatment effects across patients, leading to personalized strategies for the administration of therapies; see in particular Ma et al. (2015) for an overview.
1.2 Related work
Available methods for clustering multivariate (categorical) data include distance- and model-based approaches. Among the first, k-modes (Huang, 1998) is the most popular methodology, which is based on a modified version of the k-means algorithm (MacQueen, 1967) and implements a dissimilarity measure between modes of categorical variables computed across clusters. On the other side, poLCA (polytomous variable Latent Class Analysis) (Linzer and Lewis, 2011) is a model-based method which applies to a collection of categorical random variables. In the model, each mixture component corresponds to a multivariate categorical distribution built under the assumption of independence between marginal distributions and for a known number of components in the mixture. Importantly however, none of these methods accounts for possible dependence relationships between variables in the underlying multivariate statistical model, which instead represents a peculiar feature of our methodology. Model-based clustering methods have been extensively developed in the Bayesian literature from both a finite and infinite mixture-model perspective; see in particular Frühwirth-Schnatter et al. (2021), Argiento and De Iorio (2022) and references therein for a review and connections between the two approaches. In a multivariate Gaussian framework, infinite-mixture models based on a Dirichlet Process (DP) prior are considered by Rodríguez et al. (2011) and Castelletti and Consonni (2023) for clustering and structure learning of undirected and directed graphs respectively. Recently, Argiento et al. (2022) proposed a finite-mixture model specifically designed for multivariate unordered categorical data. This is based on a newly-introduced class of Hamming distributions which is assumed for each categorical variable marginally, and from which a joint distribution over variables is built under the assumption of (local) independence. Finally, Malsiner-Walli et al. (2024) proposed a two-layer mixture model which also allows for associations among categorical variables within each mixture-component. Such dependencies arise from a second-layer mixture, assumed within each component of the main mixture model, rather than a multivariate model with allied dependence parameter, which is instead a distinctive feature of our method for causal discovery and inference.
The literature on heterogeneous causal inference has grown extensively in the last years, particularly under the potential outcome framework (Rubin, 2005). Assuming the existence of latent sub-groups of individuals in the population, this issue is addressed through the definition and estimation of group-specific causal effects, known as Conditional Average Treatment Effects (CATEs). Machine learning methods are employed to identify the underlying clustering structure by stratification of subjects based on the levels of available covariates; see Dominici et al. (2021) for a review, Athey and Imbens (2016), Hahn et al. (2020) and Bargagli Stoffi et al. (2022), the latter proposing a method which is specifically designed to handle imperfect compliance. Recent methods also aim at improving interpretability of causal results. An instance in this direction is the Causal Rule Ensamble (CRE) method (Lee et al., 2021), which adopts multiple trees to identify patterns of heterogeneity in the data and to ensure stability in sub-group identification. Other approaches to heterogeneous causal inference using counterfactuals are based on Bayesian nonparametric methods; see for instance Linero and Antonelli (2022) and references therein. Among these, Zorzetto et al. (2024) employ a Dependent Probit Stick-Breaking mixture model to simultaneously impute the missing outcomes (counterfactuals), and to identify mutually exclusive groups, thus allowing to estimate causal effects in the presence of population heterogeneity. Still in a potential outcome framework, Roy et al. (2016) adopt marginal structural models and implement a dependent Dirichlet Process (DP) prior for the evaluation of heterogeneous causal effects of treatments on survival outcomes; Oganisian et al. (2021) instead consider a DP mixture of zero inflated regression models for pathological data exhibiting excesses of zeros. DP priors for clustering and heterogeneous causal inference are also employed by Castelletti and Consonni (2023) in a multivariate framework based on Gaussian graphical models where causal effects are defined and estimated according to do-calculus theory (Pearl, 2000).
1.3 Contribution and structure of the paper
We propose a Bayesian methodology based on a infinite mixture of categorical DAGs for causal discovery and causal effect estimation in the presence of heterogeneous data. Our model allows for the presence of latent sub-groups of individual/patients in the sample, each characterized by a possibly different causal structure and battery of related causal-effect parameters. Specifically, we assume that the multivariate distribution of the observables belongs to a Dirichlet Process (DP) mixture of categorical DAG models. Each mixture component reflects a factorization of the sampling distribution satisfying a set of conditional independencies imposed by the DAG. Under the latter, causal effects between variables are then defined according to do-calculus. With regard to the DP prior, we define a baseline measure over the space of priors on where is a DAG and the parameter of a categorical DAG model. We employ a constructive procedure based on local and global parameter independence to assign priors to DAG parameters, providing closed-form expressions for both the prior and posterior predictive of DAGs, as well as for the posterior distribution of DAG-parameters. We then leverage these results to develop a computational scheme for posterior inference of our DP model. When applied to breast cancer data, our methodology ultimately allows to quantify treatment effects of assigned therapies w.r.t. the occurrence of cardiotoxicity at subject-specific levels, thus leading to a more reliable decision process for the development of personalized therapies.
The rest of the paper is organized as follows. In Section 2 we provide some background material on DAGs and causal effects within a categorical modelling framework. In Section 3 we introduce our mixture model based on a DP prior, for which we detail the construction of the baseline mixing measure over the space of DAGs and allied parameters. We then describe a Markov Chain Monte Carlo (MCMC) strategy for posterior inference in Section 4. In Section 5 we evaluate our methodology relative to the tasks of clustering and causal discovery through extensive simulation studies, which include comparisons with alternative state-of-the-art methods. Section 6 is devoted to the analysis of breast cancer data and includes our causal-effect analysis to evaluate heterogeneous side effects of anti-HER2 therapies with respect to the occurrence of cardiotoxicity. We finally provide a discussion to our methodology in Section 7, together with possible future developments. Some technical results, including the computation of prior and posterior predictive distributions required by our posterior sampler, are reported in the Supplementary Material.
2 Background
2.1 Categorical DAG models
Consider a Directed Acyclic Graph (DAG) with set of nodes and set of directed edges . For a given , if , we say that is a parent of and let be the set of all parents of in . Moreover, we let be the family of node in the DAG. Consider now a collection of random variables , such as clinical features that can be measured on patients, and binary categorical variables indicating the administration of a therapy and the absence/presence of a disease. In the following, we assume that each , , is categorical with set of levels and let be one of its levels. Accordingly, , whose generic element is . In addition, if for any we let , then , with . Under , the joint probability admits the factorization
(1) |
For the remainder of this section we omit DAG from our notation and reason conditionally on a fixed DAG. Let now , , be a marginal probability for variables in . Moreover, let be a conditional probability for given configuration (level) of , with . Consider observations from , , where each , and , . Also, let be the sub-vector of with components indexed by . If we collect the ’s into an data matrix , then the likelihood function can be written as
(2) | ||||
now emphasizing the dependence on the DAG-parameter (corresponding to the collection of conditional probabilities in the equation) and where is the number of observations for which . See also Castelletti et al. (2024) for further notation on categorical DAG models.
2.2 Causal effects for categorical DAGs
For a given collection of random variables whose multivariate distribution factorizes according to a DAG, we now focus on the causal effect of an intervention on , , on a response variable of interest, say , . In practice, such an intervention corresponds to assigning a treatment to an individual, equivalently fixing , where is typically an exposure of , and this action can be denoted using Pearl’s do-operator (Pearl, 2003). This implies a change in the observational distribution (1), leading to the so-called post-intervention distribution
(3) |
Assuming for simplicity that both and are binary variables with levels in , the causal effect of on can be defined as
(4) |
see Pearl (2003). More in general, if is polytomous with levels labeled as , one can define a battery of causal effects by considering , for each in the first expectation of Equation (4). According to the definition above, involves a (marginal) post-intervention distribution of . However, because of (3), the latter can be expressed in terms of observational distributions, simply by conditioning and then marginalizing w.r.t. a valid adjustment set ; see Pearl (2003). A common choice for such an adjustment set is , namely the parents of , leading to
(5) | ||||
see in particular Theorem 3.2.3 in Pearl (2000). Under model (2), the causal effect in (5) can be expressed as a function of the DAG parameter as
(6) |
3 DP mixture of categorical DAG models
In this section we introduce our Dirichlet Process (DP) mixture of categorical DAG models. This can be written using the following hierarchical structure
(7) | ||||
where denotes a DP prior with baseline and concentration parameter (Ferguson, 1973), and we now emphasize the dependence on DAG in the sampling distribution .
A property of model (7) is that it induces a partition of the observations into clusters, with individuals assigned to the same cluster sharing the same DAG and DAG parameter . Moreover, the expected number of clusters is controlled by : each observation is associated with its own -parameter as ; on the contrary, if , then all observations are assigned to the same cluster, leading to a standard categorical DAG model (Castelletti et al., 2024); see also Müller and Rodriguez (2013) for related properties of the DP prior.
Let now be the number of unique values among , and a sequence of (cluster) indicator variables such that and . Conditionally on , observations are i.i.d. within each cluster, so that the likelihood can be written as
(8) | ||||
with as in Equation (2), and where is the matrix collecting all observations such that . Additionally, a generic count involved in the -th component above will be denoted as , which corresponds to the number of observations in cluster for which the level taken by variables is equal to . An alternative representation of the DP prior is based on the so-called stick-breaking process (Sethuraman, 1994). Accordingly, can be written in the form
(9) |
where is a degenerate probability measure placing all of its mass on and . Moreover, the weights satisfy , and , where , with the concentration parameter of the DP prior. In the following we will assign following Escobar and West (1994).
In the next sections we detail the construction of the baseline . This is structured as , where the former term corresponds to a prior on the DAG parameter conditionally on DAG , while the latter is a marginal prior over DAGs.
3.1 Baseline on DAG parameter
Conditionally on DAG , we first assign a prior . To this end, consider for each node and the parameter corresponding to a -dimensional vector collecting conditional probabilities for variable , given a configuration of its parents . We assign to each a Dirichlet prior with hyper-parameter , written as , whose p.d.f. is
(10) |
and where is the prior normalizing constant. Let now . By assuming global and local parameter independence (Geiger and Heckerman, 1997), respectively and , a joint prior on can be written as
(11) |
In what follows we implement the default choice , , leading to the Bayesian Dirichlet Equivalent uniform (BDEu) score (Heckerman et al., 1995), which guarantees that Markov equivalent DAGs are assigned the same marginal likelihood; see also Castelletti et al. (2024).
Also notice that the resulting prior is conjugate with the likelihood (2) since, for generic dataset , with . Accordingly, the posterior of is
(12) |
with each term corresponding to a Dirichlet p.d.f., so that direct sampling from is possible. Finally, under the same prior, a marginal (i.e. integrated w.r.t. to ) likelihood is available and admits the factorization
(13) |
with
(14) |
and where is the posterior normalizing constant. See also the Supplementary Material (Section 1) for full details.
3.2 Baseline on DAGs
Let be the (discrete) space of all DAGs with nodes. Additionally, we can restrict to a subset of DAGs satisfying some structural constraints, typically edge orientations that can be postulated in advance based on the specific real-data problem. As an instance, in our application to breast cancer data we regard age as an exogenous variable and forbid any incoming edge to it from other variables; conversely, we regard the occurrence of cardiotoxic side effect as a response variable and accordingly forbid any outgoing edge from it. Each DAG in can be represented through a 0-1 adjacency matrix , whose -element if , otherwise. Additionally, let , be the adjacency matrix of the skeleton of , namely the undirected graph obtained from by disregarding edges orientations. We assign for each , where is a prior probability of edge inclusion. We then assume hierarchically , leading to the integrated prior on DAG
where the number of non-null elements in , corresponding to the number of edges in , and is the maximum number of edges in a DAG having nodes. Sampling from the baseline over DAGs, as required by our MCMC sampler (Section 4), is possible through an acceptance-rejection algorithm over the space ; see also the Supplementary Material (Section 2).
4 Posterior inference
In this section we detail our Markov Chain Monte Carlo (MCMC) strategy for posterior inference of a DP mixture of categorical DAGs. This is based on a collapsed sampler with DAG parameters integrated out, and which accordingly approximates a marginal posterior over DAGs and cluster indicators . Such output allows for inference about the clustering structure and/or the graphical structures associated with the clusters. In a second step, DAG parameters can be sampled conditionally on based on Equation (12).
4.1 MCMC scheme
The structure of our baseline measure (Section 3.1) is such that we can integrate out the DAG parameter , which allows for the implementation of a collapsed sampler approximating the marginal posterior of . The resulting scheme has a Gibbs-sampling structure as Algorithm 2 in Neal (2000) and implements the following steps.
4.1.1 Update of cluster indicators
The full conditional of is
(15) |
which corresponds to the probability that subject is assigned to cluster , conditionally on all the observations currently assigned to that cluster, and on . In particular, for a non empty cluster , the full conditional is proportional to the product between two terms: the number of observations belonging to cluster (possibly excluding observation ), , and the posterior predictive distribution evaluated at . For the latter, we provide in the following proposition a simple closed-form expression.
Proposition 4.1 (Posterior predictive - non-empty cluster).
For a given cluster , consider the data matrix collecting the observations and an observation . Then, the posterior predictive of given is
(16) |
where and
Proof.
See Supplementary Material. ∎
The second expression of (15) considers the case of a (new) empty cluster , where the DAG is sampled from the baseline over . In such case, the full conditional is proportional to the product of the concentration parameter and a posterior predictive which reduces to the marginal likelihood (prior predictive) of a cluster containing subject only. A related closed-form expression is provided by the following proposition.
Proposition 4.2 (Posterior predictive - empty cluster).
For a new cluster , the posterior predictive of coincides with the marginal likelihood and is given by
(17) |
Proof.
See Supplementary Material. ∎
4.1.2 Update of
Under the DP prior, the full conditional distribution of coincides with , where in particular
is the prior on the number of clusters induced by the DP and is a normalizing constant not involving . Sampling from can be done by augmenting the distribution through an auxiliary variable . It can be shown (Escobar and West, 1994) that under the prior the full conditional of corresponds to a mixture of Gamma distributions, specifically
where .
4.1.3 Update of DAGs and sampling of DAG parameters
Let be the number of clusters and the cluster indicators, with each . For a given , let be the set of observations currently assigned to cluster , and the implied data matrix; see also Equation (8). Without loss of generality, consider a generic cluster and omit for simplicity subscripts from and . Update of DAG is performed through a Metropolis Hastings step where a DAG is sampled from a proposal distribution conditionally on a current DAG and it is accepted with probability with
(18) |
and as in Equation (13); see also the Supplementary Material for full details.
4.2 Posterior summaries
Output of the MCMC scheme is a collection of cluster indicators, DAGs and DAG parameters approximately drawn from the posterior distribution of our DP mixture model. Starting from such output, we can provide posterior summaries regarding clustering, DAG structures, as well as DAG-model parameters. Specifically, let be the number of clusters at MCMC iteration , , , and , , be the corresponding realizations of the three sets of parameters. For clustering purposes, we first recover an posterior similarity matrix , with -element corresponding to the (estimated) posterior probability that individuals and are assigned to the same cluster, namely
(19) |
A point estimate of the clustering structure, , can be recovered by assigning individuals and to the same cluster if exceeds a given threshold, say . As an alternative, a clustering estimate can be obtained following Wade and Ghahramani (2018) as the partition minimizing the expected Variation of Information (VI); see also Section 5.
From the same MCMC output, we can recover for each subject a matrix collecting estimates of the Posterior Probabilities of edge Inclusion (PPIs). For a given subject and edge , its PPI is estimated as
(20) |
corresponding to the proportion of DAGs in the chain containing the directed edge . Finally, a graph estimate at subject-specific level, say , can be obtained by including those edges for which for , e.g .
Recall now the definition of causal effect provided in Equation (2.2) and assume that the intervened variable and response, and respectively, are given so that we can omit them from the notation. A Bayesian Model Averaging (BMA) estimate of , the subject-specific causal effect, for , is given by
(21) |
The resulting collection provides estimates of causal effects at individual level, which also naturally account for DAG-model uncertainty through BMA.
5 Simulations
We conduct simulation studies to evaluate the performance of our methodology relative to the tasks of clustering and structure learning and compare it with alternative methods for clustering multivariate categorical data. We consider settings with nodes, number of clusters and sample sizes that we range in . We generate the two DAGs and independently, so that the two clusters differ in general by the dependence structure among variables, and by fixing a probability of edge inclusion . The two categorical datasets are built by discretization of latent Gaussian observations as detailed in the Supplementary Material (Section 4). Importantly, discretization is based on a collection of thresholds , that we randomly draw from a , where denotes the quantile of order in the empirical distribution of latent variable , independently across and for each ; see again our Supplementary Material. We consider which implies different degrees of similarity among marginal distributions between clusters. For benchmark methods that do not consider a dependence structure between variables we expect a lower ability in recovering the true clustering when , namely when marginal distributions are more similar across clusters. Finally, under each scenario, a collection of multiple () datasets is generated.
5.1 Clustering
We evaluate the clustering performance of our method (DAG mixture) w.r.t. state-of-the-art approaches and specifically the Latent Class Model (LCM) (Goodman, 1974; Linzer and Lewis, 2011) and K-modes (Huang, 1998). For both methods, we input the number of clusters as . Additionally, to emphasize the contribution of a DAG-based model on cluster identification, we also implement a No DAG strategy, where for each group the DAG is assumed to be known and corresponds to an empty graph. Performances are assessed by comparing the true partition with the estimated partitions based on the Variation of Information (VI). Lower values of the metric correspond to better performances. In addition, we expect scenario with to be characterized by overall better performances than , because in the latter the difference between the two clusters is mainly due to the dependency structure among the variables. Results are summarized in the boxplots of Figure 1.
As it appears, all methods tend to improve as the sample size grows, with our DAG mixture model clearly outperforming all the benchmarks under all scenarios.
5.2 Structure learning
We now assess the ability of our method in recovering the graphical structure underlying each cluster. To this end, we consider the Structural Hamming Distance (SHD), which represents the number of modifications (edge insertions, edge removals, edge reversal) that are needed to transform the estimated DAG into the true DAG . Specifically, we compare each subject-specific estimated DAG with , where is the true class-membership. In addition, we include the Oracle version of our method, in which the true clustering is assumed to be known, and a “one-group” naive strategy (No mixture), which instead assigns all subjects to the same cluster and therefore disregard heterogeneity. Results, for each scenario defined by and , are summarized in Figure 2. The No mixture strategy, which neglects the clustering structure in the data, performs worse than the other two methods under all scenarios and with a worsen performance as the sample size increases. By converse, the Oracle version of our method performs slightly better than our DP mixture method, a behavior which is more evident under scenario where clustering is indeed more difficult. Finally, both methods improve their performance as grows.
6 Analysis of breast cancer data
6.1 Dataset and model implementation
In this section we analyse a dataset of women diagnosed with HER2+ breast cancer and treated with potentially cardiotoxic therapies based on monoclonal antibodies (trastuzumab) and chemotherapy drugs (antracyclines). Variables in the dataset include: demographic and physical features, such as age, height and weight (expressed in terms of Body Mass Index, BMI, and included through a three-level categorical variable); risk factors, such as diagnosis of hypertension (HTA), dyslipidemia (DL), diabetes mellitus (DM), smoking (smoker and ex smoker); past cardiac diseases, namely cardiac insufficiency (CIprev), ischemic cardiomyopathy (ICMprev), arrhythmia (ARRprev), valvulopathy (VALVprev), valve surgery (valvsurgprev). In addition, the dataset provides information regarding treatments, antiHER2 monoclonal therapy (antiHER2) and/or antracyclines (AC), that were administrated to patients. Finally, the target variable corresponds to Cancer Therapy-Related Cardiac Dysfunction (CTRCD), a binary outcome indicating the occurrence (1) or not (0) of cardiac dysfunction. The original dataset is provided as a supplement to Piñeiro-Lamas et al. (2023) and included as supplementary material to our paper. Notably, all variables are categorical, with the exception of age and heart rate which have been discretized into two dummy variables, corresponding to middle vs low, and high vs low. While in general the cardiotoxic effects of the available oncological therapies have been established in the literature, still, the occurrence of CTRCD can vary substantially among patients because of both observed features (such as risk factors) or even unobserved characteristics. Accordingly, it is of interest to quantify causal effects w.r.t. the occurrence of CTRCD at individual-level, which is crucial for the development and administration of appropriate antiHER2 therapies.
Given the structure of the dataset, we constrain the adjacency matrix of DAGs in such a way that CTRCD can only (potentially) be a response, i.e. no outgoing edges are allowed, and treat age, BMI, smoker, ex smoker as exogenous variables, i.e. with no incoming edges from other nodes, while possible links/dependencies between them are allowed. Moreover, we assume that the absence/presence of risk factors can imply the administration of a therapy (AC, antiHER2), while the converse is not possible. We implement our mixture model by running the MCMC scheme for iterations, which include a burn-in period of draws that are discarded from the posterior analysis. With regard to hyperparameters, we fix in the Gamma prior on the DP precision parameter . The common hyperparameter on the collection of Dirichlet priors on is instead fixed as , while in the hierarchical prior on DAGs we fix , , reflecting an a priori assumption of sparsity in the graph space. To assess the convergence of our algorithm we also run two independent MCMC chains; results suggest an overall agreement in terms of clustering (evaluated through posterior similarity matrices), structure learning (based on estimated PPIs) and posterior distribution of causal-effect parameters. Results relative to all such quantities are presented discussed in the following sections.
6.2 Clustering
We summarize the clustering structure learned by our model by building an posterior similarity matrix; see Equation (19). From the latter, we recover a point estimate of the clustering based on the minimum posterior expectation of VI (Wade and Ghahramani, 2018); see also Section 4.2. As the result, we obtain two clusters, that we label as and , whose sizes are and respectively. The posterior similarity matrix is represented as a heatmap in Figure 3, with individuals arranged according to the estimated clusters, specifically those assigned to first and then those in . The two-cluster structure is pretty evident from the matrix since the probabilities of membership to the same group approach value one (zero) for individuals assigned to the same (to a different) estimated cluster.
We then investigate differences between the estimated clusters by comparing the empirical (marginal) distribution of each variable across and . For each cluster, we provide a graphical representation based on a spider plot, which includes for each categorical (binary) variable the proportion (percentage values) of observations corresponding to level labeled as of the variable. These values are reported as colored points joined by lines in each graph; see Figure 4. Additionally, each plot includes the same proportions as obtained from the pooled sample, namely when no clustering is considered, that are instead represented with grey dots joined by grey lines.
While for cluster 2 (right-side plot) the cluster-proportions are almost aligned with those computed on the pooled dataset, cluster 1 presents a few peculiarities. In particular, patients included in cluster 1 are in general older, as it appears from the higher frequency associated to variable age 2, and characterized by a higher BMI index. Additionally, the proportion of patients suffering from hypertension (HTA), dyslipidemia (DL), and diabetes mellitus (DM) is in general higher in comparison with the pooled dataset, than those in cluster 2. We emphasize that the results above allow to capture differences between estimated clusters that are reflected in the marginal (empirical) distribution of the variables. Importantly however, differences may emerge from the joint distribution of the variables, and specifically in the dependence (DAG) structure for patients assigned to different estimated clusters. To this end, in the next section we provide results relative to structure learning, which is carried out at subject-specific level.
6.3 Structure learning
Following Equation (20), we provide for each subject an estimate of the Posterior Probabilities of Inclusion (PPIs), that we collect in a matrix. Because of the structure of our baseline measure, we expect individuals that with high probability are assigned to the same cluster (Figure 3) to share similar dependence structures, and in particular similar PPIs. By converse, differences in the underlying graphical structure are expected for individuals assigned to distinct estimated clusters. For two randomly chosen subjects, whose membership is estimated to be cluster 1 and cluster 2 respectively, the corresponding PPIs are reported as heatmaps in Figure 5. The underlying dependence structures are both characterized by sparsity. This is much more evident in subject from cluster 1, where PPIs are more uniform and there are no edges whose PPI exceeds the threshold. Differently, the heatmap from cluster 2 shows a few variables that are more strongly related to the outcome CTRCD, specifically AC, together with several risk factors, in particular hearth rhythm, VALVprev, ARRprev. Accordingly, we expect such differences to imply heterogeneous causal effects between variables. We present some of these results in the next section.
6.4 Causal effects
The ultimate goal of our analysis is to quantify the (causal) effect of anticancer therapies on the occurrence of cardiotoxicity. In particular, patients in the study were treated with therapies based on either antracycline (AC) or trastuzumab (antiHER2). We then consider the causal effect on the occurrence of cardiotoxicity (variable CTRCD) implied by the administration of AC and antiHER2 therapies. To this end, we recover from our MCMC output a posterior distribution for each causal-effect parameter and each subject , that we summarize through BMA estimates following Equation (21). Our results are summarized in the two scatterplots of Figure 6, each reporting BMA causal-effect estimates (y-axis) computed across individuals (x-axis) and with subjects arranged according to the estimated clustering with two groups (Section 6.2). One can appreciate the heterogeneity in the estimates, with individuals assigned to the same cluster sharing similar values, except for a few patients in each group. Interestingly, these subjects are also characterized by a higher uncertainty in cluster allocation between either group 1 or 2; see in particular the posterior similarity matrix in Figure 1. As an interesting result, AC and antiHER2 treatments in general increase the probability of CTRCD occurrence for individuals assigned to cluster 2, while the effect is less pronounced, or even null, for cluster 1. Notably, cluster 1 is characterized by older patients and with a higher prevalence of some risk factors; see in particular Figure 4. Accordingly, in such patients, the occurrence of cardiotoxicity might be due to the presence of such risk factors, that may cause cardiac diseases, rather than implied by the therapy itself. Therefore, the direct effect of AC and antiHER2 therapies is lower in comparison with the same estimates in cluster 2.
In addition, to emphasize the role played by population heterogeneity in causal effect estimation, we compare our results with those based on an alternative One-group naive strategy, corresponding to a standard categorical DAG model in which all individuals are assigned to the same cluster. In such case, causal effect estimates are uniform across subjects and are included as horizontal lines in the two plots. Each resulting estimate is approximately an average of cluster-specific causal estimates, suggesting that a causal effect analysis that disregards population heterogeneity would over- and under- estimate the risk of CTRCD development across individuals.
7 Discussion
We proposed a modeling framework for structure learning and causal inference under heterogeneity that applies to multivariate categorical data. Our methodology is based on a Dirichlet Process (DP) mixture of categorical Directed Acyclic Graphs (DAGs) which allows to cluster subjects characterized by similar patterns of dependencies into homogeneous groups, and to provide estimates of causal effects at personalized, namely subject-specific, level. When adopted for clustering purposes, our method clearly outperforms benchmark strategies that do not account for dependence relations in the joint distribution of variables. Most importantly, our causal-effect analysis shows that approaches neglecting possible population heterogeneity can provide misleading estimates of causal effects. With regard to our application to breast cancer data, the probability of cardiotoxic side-effects implied by anticancer therapies could be underestimated for several patients, with serious consequences in clinical decision making for optimal therapies’ administration.
A possible extension of our model could be the analysis of mixed multivariate data, which comprise both quantitative and categorical measurements. Specifically in a biomedical setting, one can collect besides categorical clinical features the expression levels of genes that are involved in the progression of the disease. Causal inference methods that integrate such biological information can provide a more precise quantification of causal effects for the development of personalized therapies. More in general, multivariate models that can manage mixed data would be valuable for clustering purposes too, as several real-world applications frequently involve data of various types. Mixed-data represent an interesting framework for graphical modelling which has been addressed in a few works, although without accounting for population heterogeneity; see for instance Castelletti (2024).
The breast cancer dataset provided by Piñeiro-Lamas et al. (2023) includes Tissue Doppler Imaging (TDI) data, which measure the rate of contraction and relaxation of the cardiac muscle. TDI measurements can be treated as functional data, which whenever included in our analysis could help identifying sub-groups of patients who experienced different side effects of anti-HER2 therapies depending on the presence of cardiac dysfunctions. The inclusion of functional variables in our framework presents challenges that are related to the development of a DAG-based model. As a starting point, Qiao et al. (2019) propose a frequentist method to learn dependencies across functional variables, which is based on undirected graphical models and lasso-type penalization techniques.
SUPPLEMENTARY MATERIAL
Supplementary Materials comprise theoretical results on the computation of prior and posterior predictive distributions, details on sampling from the baseline over DAGs, and data generation for our simulation studies.
References
- Argiento and De Iorio (2022) Argiento, R. and M. De Iorio (2022). Is Infinity that Far? A Bayesian Nonparametric Perspective of Finite Mixture Models. The Annals of Statistics 50(5), 2641 – 2663.
- Argiento et al. (2022) Argiento, R., E. Filippi-Mazzola, and L. Paci (2022). Model-based Clustering of Categorical Data based on the Hamming Distance. arXiv preprint.
- Athey and Imbens (2016) Athey, S. and G. Imbens (2016). Recursive Partitioning for Heterogeneous Causal Effects. Proceedings of the National Academy of Sciences 113, 965 – 2020.
- Bargagli Stoffi et al. (2022) Bargagli Stoffi, F., K. De Witte, and G. Gnecco (2022). Heterogeneous Causal Effects with Imperfect Compliance: A Bayesian Machine Learning Approach. The Annals of Applied Statistics 16(3), 1986 – 2009.
- Bowles et al. (2012) Bowles, E. J. A., R. Wellman, H. S. Feigelson, A. A. Onitilo, A. N. Freedman, T. Delate, L. A. Allen, L. Nekhlyudov, K. A. B. Goddard, R. L. Davis, L. A. Habel, M. U. Yood, C. Mccarty, D. J. Magid, E. H. Wagner, and P. S. Team (2012, 09). Risk of Heart Failure in Breast Cancer Patients After Anthracycline and Trastuzumab Treatment: A Retrospective Cohort Study. JNCI: Journal of the National Cancer Institute 104(17), 1293 – 1305.
- Castelletti (2024) Castelletti, F. (2024). Learning Bayesian Networks: A Copula Approach for Mixed-Type Data. Psychometrika 89, 658 – 686.
- Castelletti and Consonni (2023) Castelletti, F. and G. Consonni (2023). Bayesian Graphical Modeling for Heterogeneous Causal Effects. Statistics in Medicine 42, 15–32.
- Castelletti et al. (2024) Castelletti, F., G. Consonni, and M. L. Della Vedova (2024, 07). Joint Structure Learning and Causal Effect Estimation for Categorical Graphical Models. Biometrics 80(3).
- Dempke et al. (2023) Dempke, W. C., R. Zielinski, C. Winkler, S. Silberman, S. Reuther, and W. Priebe (2023). Anthracycline-Induced Cardiotoxicity – Are we About to Clear this Hurdle? European Journal of Cancer 185, 94 – 104.
- Dempsey et al. (2021) Dempsey, N., A. Rosenthal, N. Dabas, Y. Kropotova, M. Lippman, and N. H. Bishopric (2021, 07). Trastuzumab-Induced Cardiotoxicity: A Review of Clinical Risk Factors, Pharmacologic Prevention, and Cardiotoxicity of other HER2-Directed Therapies. Breast Cancer Research and Treatment 188(17), 21 – 36.
- Dominici et al. (2021) Dominici, F., F. J. Bargagli Stoffi, and F. Mealli (2021). From Controlled to Undisciplined Data: Estimating Causal Effects in the Era of Data Science Using a Potential Outcome Framework. Harvard Data Science Review 3(3).
- Escobar and West (1994) Escobar, M. and M. West (1994). Bayesian Density Estimation and Inference Using Mixtures. Journal of the American Statistical Association 90(430), 577 – 588.
- Ferguson (1973) Ferguson, T. S. (1973). A Bayesian Analysis of Some Nonparametric Problems. The Annals of Statistics 1(2), 209 – 230.
- Frühwirth-Schnatter et al. (2021) Frühwirth-Schnatter, S., G. Malsiner-Walli, and B. Grün (2021). Generalized Mixtures of Finite Mixtures and Telescoping Sampling. Bayesian Analysis 16(4), 1279 – 1307.
- Geiger and Heckerman (1997) Geiger, D. and D. Heckerman (1997, 02). A Characterization of the Dirichlet Distribution through Global and Local Parameter Independence. Annals of Statistics 25, 1344 – 1369.
- Goodman (1974) Goodman, L. A. (1974). Exploratory Latent Structure Analysis Using Both Identifiable and Unidentifiable Models. Biometrika 61(2), 215 – 231.
- Hahn et al. (2020) Hahn, P. R., J. S. Murray, and C. M. Carvalho (2020). Bayesian Regression Tree Models for Causal Inference: Regularization, Confounding, and Heterogeneous Effects (with Discussion). Bayesian Analysis 15(3), 965 – 2020.
- Heckerman et al. (1995) Heckerman, D., D. Geiger, and D. M. Chickering (1995). Learning Bayesian Networks: The Combination of Knowledge and Statistical Data. Machine Learning 20(3), 197 – 243.
- Huang (1998) Huang, Z. (1998). Extensions to the k-Means Algorithm for Clustering Large Data Sets with Categorical Values. Data Mining and Knowledge Discovery 2, 283 – 304.
- Katzorke et al. (2013) Katzorke, N., B. Kathrin Rack, L. Haeberle, J. Katharina Neugebauer, C. Anna Melcher, C. Hagenbeck, H. Forstbauer, H. Ulrich Ulmer, U. Soeling, R. Kreienberg, T. N. Fehm, A. Schneeweiss, M. W. Beckmann, P. A. Fasching, and W. Janni (2013). Prognostic Value of HER2 on Breast Cancer Survival. Journal of Clinical Oncology 31(15), 600 – 640.
- Lee et al. (2021) Lee, K., F. Bargagli Stoffi, and F. Dominici (2021). Causal Rule Ensemble: Interpretable Inference of Heterogeneous Treatment Effects. arXiv preprint.
- Linero and Antonelli (2022) Linero, A. R. and J. L. Antonelli (2022). The How and Why of Bayesian Nonparametric Causal Inference. Wiley Interdisciplinary Reviews: Computational Statistics 15.
- Linzer and Lewis (2011) Linzer, D. A. and J. B. Lewis (2011). poLCA: An R Package for Polytomous Variable Latent Class Analysis. Journal of Statistical Software 42(10), 1 – 29.
- Lotrionte et al. (2013) Lotrionte, M., G. Biondi-Zoccai, A. Abbate, G. Lanzetta, F. D’Ascenzo, V. Malavasi, M. Peruzzi, G. Frati, and G. Palazzoni (2013). Review and Meta-Analysis of Incidence and Clinical Predictors of Anthracycline Cardiotoxicity. The American Journal of Cardiology 112(12), 1980 – 1984.
- Ma et al. (2015) Ma, J., B. Hobbs, and F. Stingo (2015). Statistical Methods for Establishing Personalized Treatment Rules in Oncology. BioMed Research International 2015(1), 670691.
- MacQueen (1967) MacQueen, J. (1967). Some methods for classification and analysis of multivariate observations. In Volume 1: Statistics, Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability, pp. 281 – 297. University of California Press.
- Malsiner-Walli et al. (2024) Malsiner-Walli, G., B. Grün, and S. Frühwirth-Schnatter (2024). Without Pain – Clustering Categorical Data Using a Bayesian Mixture of Finite Mixtures of Latent Class Analysis Models. arXiv preprint.
- Müller and Rodriguez (2013) Müller, P. and A. Rodriguez (2013). Dirichlet process. In Nonparametric Bayesian Inference, Volume 9, pp. 23 – 42. Institute of Mathematical Statistics.
- Neal (2000) Neal, R. M. (2000). Markov Chain Sampling Methods for Dirichlet Process Mixture Models. Journal of Computational and Graphical Statistics 9(2), 249 – 265.
- Oganisian et al. (2021) Oganisian, A., N. Mitra, and J. A. Roy (2021). A Bayesian Nonparametric Model for Zero-Inflated Outcomes: Prediction, Clustering, and Causal Estimation. Biometrics 77(1), 125 – 135.
- Pearl (2000) Pearl, J. (2000). Causality: Models, Reasoning, and Inference. Cambridge University Press, Cambridge.
- Pearl (2003) Pearl, J. (2003). Statistics and Causal Inference: A Review. Sociedad de Estadistica e Investigacion Operativa 12, 101–165.
- Piñeiro-Lamas et al. (2023) Piñeiro-Lamas, B., A. López-Cheda, R. Cao, L. Ramos-Alonso, G. González-Barbeito, C. Barbeito-Caamaño, and A. Bouzas-Mosquera (2023). A Cardiotoxicity Dataset for Breast Cancer Patients. Scientific Data 10(1), 527.
- Qiao et al. (2019) Qiao, X., S. Guo, and G. M. James (2019). Functional Graphical Models. Journal of the American Statistical Association 525, 211 – 222.
- Rodríguez et al. (2011) Rodríguez, A., A. Lenkoski, and A. Dobra (2011). Sparse Covariance Estimation in Heterogeneous Samples. Electronic Journal of Statistics 5, 981 – 1014.
- Roy et al. (2016) Roy, J., K. J. Lum, and M. J. Daniels (2016). A Bayesian Nonparametric Approach to Marginal Structural Models for Point Treatments and a Continuous or Survival Outcome. Biostatistics 18(1), 32 – 47.
- Rubin (2005) Rubin, D. B. (2005). Causal Inference Using Potential Outcomes: Design, Modeling, Decisions. Journal of the American Statistical Association 100(469), 322 – 331.
- Sethuraman (1994) Sethuraman, J. (1994). A Constructive Definition of Dirichlet Priors. Statistica Sinica 4(2), 639 – 650.
- Slamon et al. (1987) Slamon, D. J., G. M. Clark, S. G. Wong, W. J. Levin, A. Ullrich, and W. L. McGuire (1987). Human Breast Cancer: Correlation of Relapse and Survival with Amplification of the HER-2/Neu Oncogene. Science 235(4785), 177 – 182.
- Wade and Ghahramani (2018) Wade, S. and Z. Ghahramani (2018). Bayesian Cluster Analysis: Point Estimation and Credible Balls (with Discussion). Bayesian Analysis 13(2), 559 – 626.
- Zorzetto et al. (2024) Zorzetto, D., F. Bargagli Stoffi, A. Canale, and F. Dominici (2024). Confounder-Dependent Bayesian Mixture Model: Characterizing Heterogeneity of Causal Effects in Air Pollution Epidemiology. Biometrics 80(2).