Multivariate Causal Effects: a Bayesian Causal Regression Factor Model Dafne Zorzetto 1,∗ , Jenna Landy 2 , Corwin Zigler 3 , Giovanni Parmigiani 2,4 , and Roberta De Vito 1,3 Abstract . The impact of wildfire smoke on air quality is a growing concern, contributing to air pollution through a complex mixture of chemical species with important implications for public health. Although previous studies have focused mainly on its association with total particulate matter ( pm 2.5 ), the causal relationship between wildfire smoke and the chemical composition of pm 2.5 remains largely unexplored. Exposure to these chemical mixtures plays a critical role in shaping public health, but capturing their relationships requires advanced statistical methods capable of modeling the complex dependencies among chemical species. To fill this gap, we propose a Bayesian causal regression factor model that estimates the multivariate causal effects of wildfire smoke on the concentration of 27 chemical species in pm 2.5 across the United States. Our approach introduces two key innovations: (i) a causal inference framework for multivariate potential outcomes, and (ii) a novel Bayesian factor model that employs a probit stick-breaking process as prior for treatment-specific factor scores. By focusing on factor scores, our method addresses the missing data challenge common to causal inference and enables a flexible, data-driven characterization of the latent factor structure, which is crucial to capture the complex correlation between multivariate outcomes. Through Monte Carlo simulations, we show the accuracy of the model in estimating the causal effects in multivariate outcomes and characterizing the treatment-specific latent structure. Finally, we apply our method to US air quality data, estimating the causal effect of wildfire smoke on 27 chemical species in pm 2.5 , providing a deeper understanding of their interdependencies. † † footnotetext: ∗ dafne \_ zorzetto@brown.edu 1 Data Science Institute, Brown University, Providence, Rhode Island, U.S.A. 2 Department of Biostatistics, Harvard University, Cambridge, Massachusetts, U.S.A. 3 Department of Biostatistics, Brown University, Providence, Rhode Island, U.S.A. 4 Department of Data Science, Dana Farber Cancer Institute, Boston, Massachusetts, U.S.A. Keywords: Causal inference, Factor analysis, Factor score’s prior, Infinite mixture distribution, Potential outcome framework. 1. Introduction In observational studies, a single cause or exposure can affect multiple outcomes that are often inherently strongly correlated. For instance, in environmental health, air pollution may simultaneously influence several diseases or mortality causes. In genomics, a cancer treatment can alter mutational signature profiles. Similarly, as analyzed in this paper, wildfire smoke represents a specific exposure that can change the chemical composition of ambient air pollutants. Wildfires have emerged as a critical environmental and public health concern, significantly deteriorating air quality through the emission of smoke and associated pollutants ( Childs et al., 2022 ; Krasovich Southworth et al., 2025 ) . In the United States, wildfire smoke exposure has increased significantly, with the burned area quadrupling over the past four decades, a trend expected to continue as climate conditions become increasingly favorable to fire activity. Wildfire smoke can rise high into the atmosphere and travel long distances, affecting air pollution levels and health risks far from the source ( Burke et al., 2021 ; O’Dell et al., 2021 ) . As a result, wildfire pollution has received considerable attention in environmental health research ( Burke et al., 2021 ; Krasovich Southworth et al., 2025 ) . A growing body of literature has examined the effects of wildfire smoke on particulate matter ( pm 2.5 ), highlighting the need to quantify the proportion of pm 2.5 attributable to wildfires ( Burke et al., 2021 ; Childs et al., 2022 ) , given the well-documented adverse health effects of elevated pm 2.5 exposure ( Carone et al., 2020 ; U.S. Environmental Protection Agency, 2022 ) . However, wildfire smoke is a complex mixture of pollutants that undergoes physical and chemical transformations during atmospheric transport. Understanding how wildfire smoke influences the concentration levels of various chemical species in pm 2.5 is therefore a pressing challenge. While previous studies have focused on the impact of wildfire smoke on individual chemical components —such as phosphorus and nitrogen ( Spencer and Hauer, 1991 ) , lead ( Odigie and Flegal, 2014 ) , bromine and other metals ( Li et al., 2023b ) — the recent work of Krasovich Southworth et al. (2025) has provided a more comprehensive analysis by quantifying the contribution of wildfire smoke to the concentration of 27 different chemical species in pm 2.5 using a standard linear regression model. Their analysis focuses primarily on accounting for temporal variation and estimating the contribution of wildfire smoke to each chemical species in pm 2.5 . However, it does not jointly model chemical species, limiting information sharing across species, and does not adopt a causal inference perspective, restricting its ability to disentangle the causal effect of wildfire smoke. A causal inference framework is crucially needed to rigorously assess and quantify the effect of wildfire smoke on changes in chemical concentration levels, providing a deeper understanding of the associations highlighted in previous studies. A Bayesian perspective is particularly well suited to this setting, as it provides coherent uncertainty quantification for causal estimands, allows prior information to be incorporated in a principled way, and offers a flexible modeling framework for complex data structures ( Li et al., 2023a ) . Moreover, incorporating the high correlation structure among the different chemical species is critical to capturing deeper insights into the composition of smoke and its broader environmental effects. To address these limitations, we propose a novel Bayesian factor model for causal inference, which leverages infinite mixture distributions as priors for the treatment-specific factor scores. The key novelty of our project lies in two main aspects. First, we define a causal inference framework within a Bayesian factor analysis model, to account for the high correlation between multivariate potential outcomes, such as the chemical species in pm 2.5 . Second, we introduce a novel prior on the factor scores using a Dirichlet process ( Quintana et al., 2022 ) with a probit linear model to capture treatment-specific heterogeneity in a data-driven way. Traditional Bayesian factor models have focused primarily on priors for factor loadings ( Bhattacharya and Dunson, 2011 ; Schiavon et al., 2022 , e.g.,) , typically assuming standard normal distributions for factor scores. Recent works ( Zorzetto et al., 2024c ; Bortolato and Canale, 2024 ) have begun exploring priors on factor scores, since they define the subject-specific contribution of each factor to the variation, making them essential in many applications. However, introducing a causal inference framework in Bayesian factor models poses new challenges due to the fundamental missing data problem of causal inference ( Rubin, 1980 ) . Our proposed prior addresses this by allowing a covariate-dependent structure in treatment-specific scores, enabling better estimation of latent confounding patterns. In particular, our prior leverages the flexibility of the Dependent Dirichlet Process (DDP) ( Quintana et al., 2022 ) , building on a growing body of work in causal inference that employs DDP priors ( Roy et al., 2024 ; Hu et al., 2023 ; Zorzetto et al., 2024a , e.g.,) , though primarily in the context of scalar outcomes. A key strength of this model is its flexibility and broad applicability to a wide range of real-world datasets where a treatment or exposure affects multivariate outcomes composed of correlated components. Beyond the wildfire application, the model can be used, for example, to estimate the effects of pm 2.5 exposure on cause-specific mortality or to investigate how cancer drugs affect transcriptional profiles. The paper is organized as follows. Section 2 introduces the causal inference setup, including the estimands of interest, causal assumptions, and identification strategy. Section 3 introduces our Bayesian factor model for causal inference, highlighting the innovation in our prior specification for factor scores and its critical role in this context. In Section 4, we assess the performance of the model performance through simulations. In Section 5, we apply our approach to estimate the causal effect of the presence of wildfire smoke on the concentration of 27 chemical species in pm 2.5 across the United States. We conclude the paper with a discussion and future directions in Section 6. 2. Causal setup Notation and Overview Let i denote the study unit, with i=1,\dots,n . For each unit, let T_{i}\in\{0,1\} the binary treatment random variable with observed value t_{i} , let {\bf X}_{i}=(X_{1i},\dots,X_{pi})^{T} be the vector of p observed covariates (confounders), which may be either continuous or discrete, and let \mathbf{Y}_{i}\in\mathbb{R}^{q} be the multivariate outcome of dimension q . The outcome components are potentially highly correlated, a structure acknowledged by our Bayesian causal factor model. Throughout the paper, bold letters denote vectors. Following the definition of the Rubin Causal Model ( Rubin, 1974 ) , we make the Stable Unit Treatment Value Assumption ( Rubin, 1980 , SUTVA;) , which is a combination of two assumptions: no interference among the units, i.e. the potential outcome values from unit i do not depend on the treatment applied to other units, and consistency, i.e. each observed outcome is the individual’s potential outcome under their treatment. Under SUTVA, we define the potential outcomes, for unit i , as \{{\bf Y}_{i}(0),{\bf Y}_{i}(1)\} , where {\bf Y}_{i}(t)=(Y_{i1}(t),\dots,Y_{iq}(t))^{T} for t\in\{0,1\} . Specifically, {\bf Y}_{i}(0)\in{\mathds{R}}^{q} is the q -variate outcome when the unit i is assigned to the control group and {\bf Y}_{i}(1)\in{\mathds{R}}^{q} is the q -variate outcome when the unit i is assigned to the treatment group. Under consistency, therefore the observed outcome can be written as {\bf Y}_{i}=(1-T_{i})\,{\bf Y}_{i}(0)+T_{i}\,{\bf Y}_{i}(1). In practice, for i=1,\dots,n , we observe only {\bf y}_{i}\in{\mathds{R}}^{q} , the realization of the random variable {\bf Y}_{i}=(Y_{i1},\dots,Y_{iq}) . Conversely, we do not observe the missing outcome {\bf Y}_{i}^{mis}\in{\mathds{R}}^{q} defined as {\bf Y}_{i}^{mis}=T_{i}\,{\bf Y}_{i}(0)+(1-T_{i})\,{\bf Y}_{i}(1) . To concisely define the correlated nature of the multidimensional outcome, for each unit i , we assume an unmeasured variable {U}_{i} that affects the treatment T_{i} and the potential outcome \{{\bf Y}_{i}(0),{\bf Y}_{i}(1)\} . Under the assumption of our proposed Bayesian causal factor model, formally introduced in Section 3. Bayesian Causal Factor Model , we model both factual and counterfactual latent factors \{{\bf L}_{i0},{\bf L}_{i1}\} that capture the indirect effect of U_{i} on the potential outcomes \{{\bf Y}_{i}(0),{\bf Y}_{i}(1)\} , as illustrated in Figure 1 Figure 1 shows the three versions of the resulting conditional independence structure considered in our model. Figure 1. Graphical representation of the causal pathway assumed in this paper, with treatment T , measured confounders X , unmeasured confounder U , latent factors L , and multivariate outcome Y . The three scenarios consider different relationships for unmeasured confounder U : (1) confounding only through an effect on latent factors L , (2) confounding as an effect of measured confounders X on U , (3) confounding because U is a cause of measured confounders X . The simulation study investigates each of these scenarios. In our environmental data application, the latent factors L_{t} , identified in our factor model, explain the observed correlation structure among chemical species. While the latent variables denoted by U may represent specific pollution sources such as traffic, metalworking industries, energy production, or soil dust ( Park et al., 2014 , see e.g.) , which are often impractical to measure comprehensively, but may determine the latent correlation structure. Causal Estimands and Identifying Assumptions Our goal is to estimate the vector of causal effects of the treatment on each component of the multivariate outcome. Therefore, we define the quantities of interest as the q -dimensional Sample Average Treatment Effects (SATE) \displaystyle\mbox{{SATE}}={\mathds{E}}[{\bf Y}(1)-{\bf Y}(0)], where the average is taken across the units \{1,\dots,n\} and SATE \in\mathbb{R}^{q} . As common in causal inference, these causal estimands cannot be estimated directly from observed data due to the missing potential outcomes. To address this, we adopt the following assumptions and leverage our proposed factor model, specifically the relationship of treatment-specific factor scores —i.e., {\bf l}_{0} and {\bf l}_{1} —with measured and unmeasured variables. The first assumption is standard in the causal inference literature, the second is common in concept but adapted to our setting, while the third is newly defined for the context of the assumed latent factor structure. Positivity. Each unit i\in\{1,\dots,n\} has a non-zero probability of receiving each treatment level, such that 0<\Pr(T_{i}=1\mid{\bf X}_{i}={\bf x}_{i})<1. Conditional ignorability. The assignment of treatment is random in each group of units characterized by observed covariates {\bf x} and latent factors scores {\bf l}_{0} and {\bf l}_{1} , such that \{{\bf Y}_{i}(1),{\bf Y}_{i}(0)\}\perp T_{i}\mid\{{\bf X}_{i}={\bf x}_{i},{\bf L}_{i0}={\bf l}_{i0},{\bf L}_{i1}={\bf l}_{i1}\}, for each unit i\in\{1,\dots,n\} . Indirectness of unmeasured confounding effects. The unmeasured variable U affects the potential outcomes only indirectly, through the latent factor and the observed confounders, such as \mathds{P}({\bf Y}(1),{\bf Y}(0)\mid{\bf X},{\bf L}_{0},{\bf L}_{1},U)=\mathds{P}({\bf Y}(1),{\bf Y}(0)\mid{\bf X},{\bf L}_{0},{\bf L}_{1}). This assumption can be visualized in Figure 1 as the absence of a direct arrow between the U and {\bf Y} . Identification Under the three assumptions of Section Causal Estimands and Identifying Assumptions , the causal estimands (i.e., functions of potential outcomes) can be expressed as statistical estimands (i.e., functions of random variables) and can then be estimated using observed data. Property 1 . If the three assumptions of Section Causal Estimands and Identifying Assumptions hold, the statistical estimand for SATEs is: \displaystyle{\mathds{E}}[{\bf Y}(1)-{\bf Y}(0)]=\int_{\mathcal{X}}\int_{\mathbb{R}^{J_{0}}}\int_{\mathbb{R}^{J_{1}}}\bigg({\mathds{E}}[{\bf Y}\mid T=1,{\bf X}={\bf x},{\bf L}_{0}={\bf l}_{0},{\bf L}_{1}={\bf l}_{1}] \displaystyle\quad\quad-{\mathds{E}}[{\bf Y}\mid T=0,{\bf X}={\bf x},{\bf L}_{0}={\bf l}_{0},{\bf L}_{1}={\bf l}_{1}]\bigg)\times\mathds{P}({\bf L}_{0}={\bf l}_{0},{\bf L}_{1}={\bf l}_{1}\mid{\bf X}={\bf x})\mathds{P}({\bf X}={\bf x})d{\bf l}_{0},d{\bf l}_{1}d_{\bf x}; where the inner expectation {\mathds{E}}[{\bf Y}\mid T=t,{\bf X}={\bf x},{\bf L}_{0}={\bf l}_{0},{\bf L}_{1}={\bf l}_{1}] , for each treatment level t\in\{0,1\} , will be estimated using our proposed factor model ( 2 ) and the joint probability of the latent factor scores \mathds{P}({\bf L}_{0},{\bf L}_{1}\mid{\bf X}) modeled via prior distribution specified in ( 3 ). Property 1 underlines the pivotal role of the probability distribution of treatment-specific factor scores and thus the necessity of defining a flexible prior, such as the one we propose in ( 3 ). Moreover, the inner expectation {\mathds{E}}[{\bf Y}\mid T=t,{\bf X}={\bf x},{\bf L}_{0}={\bf l}_{0},{\bf L}_{1}={\bf l}_{1}] can be rewritten with an additional integration over the unmeasured variable U , as follows: \displaystyle{\mathds{E}}[{\bf Y}\mid t,x,l_{0},l_{1}]=\int_{\mathcal{U}}{\mathds{E}}[{\bf Y}\mid t,x,l_{0},l_{1},u]\mathds{P}(u\mid t,x,l_{0},l_{1})du (1) \displaystyle\quad\quad\quad\quad\quad\quad\quad\;=\int_{\mathcal{U}}\frac{{\mathds{E}}[{\bf Y}\mid t,x,l_{0},l_{1}]\mathds{P}(l_{0},l_{1}\mid u,x)\mathds{P}(t\mid x,u)\mathds{P}(x,u)}{\int_{u}\mathds{P}(l_{0},l_{1}\mid u,x)\mathds{P}(t\mid x,u)\mathds{P}(x,u)du}du; where the indirectness of unmeasured confounding assumption is used in the second step. 3. Bayesian Causal Factor Model Model Definition To address the multivariate outcome, we propose an approach that adopt a factor regression model ( Carvalho et al., 2008 ) , which uses factor analysis to model the potential outcomes given the treatment and the confounders. Rather than performing multiple univariate analyses, our factor analysis approach (i) improves statistical power by leveraging the correlation structure in the outcome, and (ii) facilitates the recovery of information from the unmeasured variable {U} , under the three cases considered in Figure 1 . Specifically, we assume that for each unit i\in\{1,\dots,n\} , the outcome vector {\bf Y}_{i} , follows a treatment-specific probability density distribution g_{t}(\cdot) , with t\in\{0,1\} , where g_{t}(\cdot) is modeled as a multivariate normal distribution \displaystyle\{{\bf Y}_{i}\mid{\bf x}_{i},t,{\bf l}_{it}\}\sim g_{t}({\bf x}_{i},{\bf l}_{it}), (2) \displaystyle g_{t}({\bf x}_{i},{\bf l}_{it})=\boldsymbol{\mu}_{t}+{\bf B}_{t}{\bf x}_{i}+\Lambda_{t}{\bf l}_{it}+\boldsymbol{\xi}_{it},\quad\boldsymbol{\xi}_{it}\sim\mathcal{N}_{q}(0,\Psi_{t}). The outcome {\bf Y}_{i} depends on treatment t , covariates {\bf x}_{i} , and treatment-specific latent factors {\bf l}_{it}\in\mathbb{R}^{J_{t}} , where J_{t} denotes the number of factors for treatment t (assumed unknown). The matrix \Lambda_{t}\in\mathbb{R}^{q\times J_{t}} represents treatment-specific factor loadings, where the element \lambda_{tjh} denotes the entry in row j and column h , and \Psi_{t}\in\mathbb{R}^{q\times q} is assumed to be a diagonal matrix with elements (\psi_{1t},\dots,\psi_{qt}) as in standard factor analysis literature ( Thurstone, 1931 ; Anderson-Cook, 2004 ) . Covariates {\bf X} are standardized such that {\bf x}\sim\mathcal{N}_{p}(0,{\mathchoice{\raisebox{0.0pt}{$\displaystyle\chi$}}{\raisebox{0.0pt}{$\textstyle\chi$}}{\raisebox{0.0pt}{$\scriptstyle\chi$}}{\raisebox{0.0pt}{$\scriptscriptstyle\chi$}}}) with diagonal elements of \textstyle\chi equal to 1. The corresponding regression parameters {\bf B}_{t}{\color[rgb]{0,0,0}\in\mathbb{R}^{q\times p}} and intercept \boldsymbol{\mu}_{t} , for each treatment level t , have prior probability distributions, following the Bayesian paradigm. Among the reasonable prior distributions, we assume conjugate priors \boldsymbol{\mu}_{t}\sim\mathcal{N}_{q}(\boldsymbol{\mu}_{m_{t}},\Sigma_{m_{t}})\mbox{ and }\boldsymbol{\beta}_{tj}\sim\mathcal{N}_{q}(\boldsymbol{\mu}_{\beta_{t}},\Sigma_{\beta_{t}}), where \boldsymbol{\beta}_{tj} denotes the j -th row of the matrix {\bf B}_{t} in ( 2 ), such that \boldsymbol{\beta}_{tj}=\{\beta_{tj1},\dots,\beta_{tjp}\} and \beta_{tjk} is the element ({\bf B}_{t})_{j,k} with j\in\{1,\dots,q\} and k\in\{1,\dots,p\} . We assume that \Sigma_{m_{t}} and \Sigma_{\beta_{t}} are diagonal matrices for each t . The Role of the DDP in the Factor Scores In the literature, Bayesian statistical inference in factor analysis primarily focuses on priors for the factor loading matrix, whereas the prior for the factor score matrix is typically chosen as a standard Gaussian distribution. However, this prior is not suitable for handling the imputation of the missing data, as required in the potential outcomes framework for causal inference. Since accurate imputation of missing data is crucial, an informed choice of prior distribution is necessary. To address this, in the following Section Depend Mixture Distribution for Treatment-Specific Factor Scores , we propose a prior distribution for the treatment-specific factor scores that takes advantage of the properties of the dependent Dirichlet process ( Quintana et al., 2022 , DDP;) . The flexibility of the DDP has made it widely adopted in causal inference settings involving scalar outcomes. For example, Roy et al. (2024) leverage the enriched Dirichlet process to estimate causal effects for mediation analysis, while Zorzetto et al. (2024a) specify a DDP prior for heterogeneous treatment effect. In our factor model, our DDP prior has two characteristics: (i) it can written as infinite mixture of Gaussian distributions, and (ii) the probability of assignment to each mixture component depends on the covariates X —called cluster allocation in the DDP literature. Moreover, we specify a DDP prior that allows us to capture heterogeneity at both the factor and treatment levels. In fact, treatment-specific factor scores quantify the score/importance that each unit expresses on the corresponding factor under the specific treatment level. In the environmental application discussed in Section 5. Environmental Application , each factor score of a specific chemical indicates its contribution to explain the correlation among chemicals within the corresponding latent factor (reflecting underlying sources of metal and organic emissions). Notably, each factor score can vary depending on the presence or absence of wildfire smoke, reflecting how wildfire exposure alters the chemical composition of the air. The characteristic (i) defines a flexible distribution for each factor score that captures the heterogeneity in the factor scores through the identification of different clusters, while characteristic (ii) associates the cluster allocation to specific values of the covariates. This improves not only the estimation of factor scores compared with the standard Gaussian distribution as prior, but also their imputation under unobserved treatment levels. Specifically, for a given factor, the predictive posterior distribution of a factor score of a unit under the unobserved treatment level is similar to the posterior distributions of factor scores of units with similar covariate profiles, when observed under the same treatment. This data imputation process can be viewed as analogous to the matching process typically used in study design, where the criteria are driven by the covariates. However, our prior specification (Eq. ( 3 )) does not replace the study design in observational studies, as further discussed in the application section. Depend Mixture Distribution for Treatment-Specific Factor Scores We define the prior for each factor l_{itj} as follows (3) \displaystyle\{l_{it{\color[rgb]{0,0,0}h}}\mid{\bf x}_{i},t\}\sim\int_{\Omega}{\mathcal{H}}(\cdot;\omega)dG_{{\bf x}_{i}}^{(t{\color[rgb]{0,0,0}h})}(\omega),\quad G_{{\bf x}_{i}}^{(t{\color[rgb]{0,0,0}h})}\sim\Pi_{{\bf x}_{i}}^{(t{\color[rgb]{0,0,0}h})}, for {\color[rgb]{0,0,0}h}\in\{1,\dots,J_{t}\} of units i\in\{1,\dots.n\} , for each t\in\{0,1\} . The random probability measure G_{{\bf x}_{i}}^{(t{\color[rgb]{0,0,0}h})} depends on confounders {\bf x}_{i} and is specific to a treatment level t and a factor {\color[rgb]{0,0,0}h} . Assuming its prior \Pi_{{\bf x}_{i}}^{(t{\color[rgb]{0,0,0}h})} where \Pi_{{\bf x}_{i}}^{(t{\color[rgb]{0,0,0}h})} is a DDP ( Quintana et al., 2022 ) , we define a dependent infinite mixture distribution as the probability density distribution of the factors. Consistently with standard factor analysis literature, we define the continuous density function {\mathcal{H}}(\cdot;\omega) , with parameter space \Omega , as a Gaussian kernel, where \omega=(\eta,1/\tau) are the location and scale parameters, respectively. Following a single-atom DDP ( Quintana et al., 2022 ) characterization of the random measure G_{{\bf x}_{i}}^{(t{\color[rgb]{0,0,0}h})} , we can write: (4) G_{{\bf x}_{i}}^{(t{\color[rgb]{0,0,0}h})}=\sum_{r\geq 1}\pi_{r}^{(t{\color[rgb]{0,0,0}h})}({\bf x}_{i})\delta_{\mathbb{\omega}^{(t{\color[rgb]{0,0,0}h})}_{r}}, for t=\{0,1\} and {\color[rgb]{0,0,0}h}=\{1,\dots,J_{t}\} , where \{\pi_{r}^{(t{\color[rgb]{0,0,0}h})}({\bf x}_{i})\}_{r\geq 1} and \{\omega^{(t{\color[rgb]{0,0,0}h})}_{r}\}_{l\geq 1} represent infinite sequences of random weights and random kernels’ parameters, respectively. Notably, both random sequences depend on the level of treatment, t , and factor, {\color[rgb]{0,0,0}h} , while the weights also depend on the values {\bf x}_{i} of the confounders. The elements of the sequence of random parameters \{\omega_{r}^{(t{\color[rgb]{0,0,0}h})}\}_{r\geq 1} are independent and identically distributed, where the r -th element of the sequence is the joint parameters of the r -th Gaussian distribution in the mixture model in ( 3 ), so that \omega_{r}^{(t{\color[rgb]{0,0,0}h})}=(\eta_{r}^{(t{\color[rgb]{0,0,0}h})},1/\tau_{r}^{(t{\color[rgb]{0,0,0}h})}) . Following the stick-breaking representation ( Sethuraman, 1994 ) , the sequence of dependent weights is defined as \pi_{r}^{(t{\color[rgb]{0,0,0}h})}({\bf x}_{i})=V^{(t{\color[rgb]{0,0,0}h})}_{r}({\bf x}_{i})\prod_{g0 . B. Posterior Computations We implement a Gibbs sampling algorithm for model fitting, outlined below, which builds on the algorithms proposed by Bhattacharya and Dunson (2011) for the estimation of factor loading and Rodriguez and Dunson (2011) for the prior of the . Following the steps of the algorithm 1 , in each iteration r=1,\dots,R , we use the observed data (y,t,{\bf x}) to update the parameters and latent factors and then impute the missing potential outcomes y^{mis} . Given initial random values for parameters and latent variables, we recurrently draw them in the following order. Covariates regression. The Gaussian conjugate prior distribution for the covariates regression parameter allow us to write the posterior distribution for them as following \displaystyle\{{\bf B}_{tk}\mid{\bf x},{\bf y},\Lambda,{\bf l},\mu_{\beta},\sigma_{\beta}\}\sim\mathcal{N}(V_{\beta}^{-1}M_{\beta},V_{\beta}^{-1}), \displaystyle V_{\beta}=\sigma_{\beta}^{-1}\mathbb{I}_{p}+\psi_{tk}^{-1}{\bf x}^{T}{\bf x}, \displaystyle M_{\beta}=\mu_{\beta}/\sigma_{\beta}\mathbb{I}_{p}+\psi_{tk}^{-1}({\bf x}^{T}y_{k}-{\bf x}_{i}^{T}\Lambda_{t[k,\cdot]}{\bf l}_{tk}); for each treatment level t\in\{0,1\} and each component of the outcome variable k=\{1,\dots,q\} . Factor scores. The posterior distribution for the treatment-specific factor score conditional to the cluster allocation {\bf S}_{it} for each unit i\in\{1,\dots,n\} is \displaystyle\{{\bf l}_{it}\mid{\bf S}_{it}=\bar{\bf s},{\bf x},{\bf y},\Lambda,{\bf l},\mu_{l},\tau\}\sim\mathcal{N}(V_{l\mid s}^{-1}M_{l\mid s},V_{l\mid s}^{-1}) \displaystyle V_{l\mid s}=\left(\mathrm{T}^{(t)}_{\bar{\bf s}}\right)^{-1}+\Lambda_{t}^{T}\Psi_{t}^{-1}\Lambda_{t} \displaystyle M_{l\mid s}=\Lambda_{t}^{T}\Psi_{t}^{-1}({\bf y}_{i}-{\bf B}_{t}{\bf x}_{i})+\mu^{(t)}_{\bar{\bf s}}\left(\mathrm{T}^{(t)}_{\bar{\bf s}}\right)^{-1} where {\bf S}_{it} is the vector of cluster allocation latent variable of each {\bf l}_{it} for the unit i and treatment t , such that \bar{\bf s}=\{s_{it1},\dots,s_{itk}\} are the current values. The \mu^{(t)}_{\bar{\bf s}}=\{\mu^{(t)}_{s_{it1}},\dots,\mu^{(t)}_{s_{itk}}\} and \mathrm{T}^{(t)}_{\bar{\bf s}}=\mbox{diag}(\tau^{(t)}_{s_{it1}},\dots,\tau^{(t)}_{s_{itk}}) are respectively the means and variances of the \bar{\bf s} components of the mixture. Factor loading. If we denote the j -th row in \Lambda_{t} by \lambda_{jt}^{\top} for each t\in\{0,1\} . The conditional distributions for \lambda_{jt} is the following \{\lambda_{jt}\mid\cdots\}\sim\mathcal{N}\left(\left(D_{jt}^{-1}+\psi_{jt}^{-2}l_{t}^{\top}l_{t}\right)^{-1}l_{t}^{\top}\psi_{jt}^{-2}\tilde{y}_{tj},\left(D_{jt}^{-1}+\psi_{jt}^{-2}l_{t}^{\top}l_{t}\right)^{-1}\right), where {\bf l}_{t}=({\bf l}_{1t},\ldots,{\bf l}_{n_{t}t})^{\top} , \tilde{y}_{tj}=(y_{1tj}-{\bf X}_{1}\beta_{t}^{T},\ldots,y_{n_{t}tj}-{\bf X}_{n_{t}}\beta_{t}^{T}) indicate the observed outcome removing the regression given the current value for \boldsymbol{\beta}_{t} , and D_{jt}^{-1}=\mathrm{diag}(\theta_{jt1}^{t}\iota_{1}^{t},\ldots,\theta_{jtJ_{t}}^{t}\iota_{J_{t}}^{t}) is function of the parameters of the Bhattacharya and Dunson (2011) ’s prior. Hyperparameters for factor loading. The posterior distribution of \theta_{tjh} and \delta_{tl} , for each factor j , component p of the outcome, and treatment t , are respectively \displaystyle\{\theta_{tjh}\mid-\}\sim\Gamma\left(\frac{\nu_{t}+1}{2},\frac{\nu_{t}+\iota_{th}\lambda_{tjh}^{2}}{2}\right), \displaystyle\{\delta_{t1}\mid-\}\sim\Gamma\left(a_{1_{t}}+\frac{pk}{2},\ 1+\frac{1}{2}\sum_{j=1}^{k}\iota_{tj}\sum_{h=1}^{p}\theta_{tjh}\lambda^{2}_{tjh}\right), \displaystyle\{\delta_{tl}\mid-\}\sim\Gamma\left(a_{2_{t}}+\frac{p}{2}(k-l+1),\ 1+\frac{1}{2}\sum_{j=l}^{k}\iota_{tj}\sum_{h=1}^{p}\theta_{tjh}\lambda^{2}_{tjh}\right),\quad l\geq 2. Cluster allocation. The latent variables S_{itj} identifies the cluster allocation for each units i at the treatment level t and factor j=\{1,\dots,k\} . Its posterior distribution is a multinomial distribution where \mathbb{P}(S_{itk}=l\mid\eta_{l}^{(tj)},\tau_{l}^{(tj)})\propto\pi_{l}^{(tj)}({\bf x}_{i})\mathcal{N}({\bf l}_{it};\eta_{l}^{(tj)},1/\tau_{l}^{(tj)}), for l=1,\dots,L , with \pi^{(tj)}_{l} defined as: \pi_{l}^{(tj)}({\bf x}_{i})=\Phi(\alpha_{l}^{(tj)}({\bf x}_{i}))\prod_{r