We propose a novel framework based on the RuleFit method to estimate heterogeneous treatment effect in randomized clinical trials. The proposed method estimates a rule ensemble comprising a set of prognostic rules, a set of prescriptive rules, as well as the linear effects of the original predictor variables. The prescriptive rules provide an interpretable description of the heterogeneous treatment effect. By including a prognostic term in the proposed model, the selected rule is represented as an heterogeneous treatment effect that excludes other effects. We confirmed that the performance of the proposed method was equivalent to that of other ensemble learning methods through numerical simulations and demonstrated the interpretation of the proposed method using a real data application.
Randomized controlled clinical trials have been conducted to verify the effect of new treatments, and the average treatment effect is commonly used to evaluate the difference in outcomes between new and existing treatments.1,2 However, the treatment effect is not always homogeneous in the overall population and varies according to some individual characteristics. Heterogeneous treatment effect (HTE) has received wide attention in recent years; it focuses on a subgroup that exhibits specific characteristics as a result of receiving treatment. Various machine learning methodologies have been developed for estimating the HTE. Tree-based methods are well-suited to handling large-scale data and they enable flexible modeling with various levels of covariates, compared to conventional statistical methods.3 For example, a regression tree construction based on Classification and Regression Tree (CART)4 has been proposed.5,6 Moreover, in a forest-based algorithm, random forest7 has been extended to causal effect estimation.3,8 Furthermore, three methods were proposed by Powers et al.9 in a framework of conditional outcome differences. Among Bayesian approaches, Bayesian additive regression trees (BARTs)10 was developed for HTE estimation.11,12 Although ensemble learning models have demonstrated significant predictive capabilities, the interpretability of variable contributions to the predicted values lacks clarity, known as the black box problem.
To address this challenge, model-interpretable methods have been proposed. The RuleFit method introduced by Friedman and Popescu13 uses a nonparametric tree-based ensemble technique that can be expressed as a linear combination of base functions. This method generates functions based on “rules” from the paths from each root to the terminal nodes in each decision tree, and these functions can be expressed as a form of rule, that is, “weight kg and height cm.” In this example, weight and height are covariate variables, and this rule function includes the subgroup whose weight is greater than kg and height is under cm. These rules help to determine the relationships among the characteristics of subgroups and the effects of the treatments. The RuleFit method has been applied to the framework of HTE in several studies. Bargagli-Stoffi et al.14 proposed the causal rule ensemble (CRE), which uses RuleFit to extract interpretable HTE as the form of rule after estimating the HTE using another ensemble method. However, this method does not use RuleFit for the estimation of the HTE itself.
In this study, we propose a novel framework based on RuleFit to estimate interpretable HTE. The proposed framework assumes that the estimated HTE can be expressed as a linear combination of coefficients and rules to interpret the HTE between target treatment group and control group. Then, we interpret the characteristics represented by the obtained rules, specifically how they affect HTE. The proposed method includes a prognostic term in addition to prescriptive terms to express the HTE as a linear combination. If the prognostic term is not included in the model, the estimated value may contain both the prognostic effect and the HTE, making it difficult to accurately evaluate the specific effects of the treatment. Including a prognostic term in the model allows the HTE to be interpreted in the form of rules.
Moreover, to obtain an interpretable HTE, that is, to represent the estimated HTE as a linear combination, we incorporate the idea of a shared basis proposed by Powers et al.9 into the proposed framework. In the shared-basis concept, the models for the two treatment groups assume that the base functions for the conditional mean regression are the same. The comparability of an HTE is not assured if the two treatment groups do not share the base functions. In our proposed method, by sharing the same rules related to the HTE between the target treatment group and control group, the calculation results of HTE can be described as a linear combination of coefficients and rules. To accomplish this, we use group lasso15 instead of the lasso16 used in the conventional RuleFit method. Wan et al.17 proposed a RuleFit-based method to estimate the HTE; however, it does not consider the prognostic effect. By contrast, the proposed method considers the prognostic effect in estimating HTE, thereby allowing for a more refined interpretation of the treatment effect. We have developed R code for the proposed method,18 in which some of the functions of the proposed method partially use the codes of the R package pre.19
In Section 2, we explain the HTE and conventional RuleFit in relation to the proposed method. Then, we introduce the framework and algorithm of the proposed method in Section 3. In Section 4, we demonstrate the efficiency of the proposed method through numerical simulations, and in Section 5, we describe the application of the proposed method to real genetic data related to breast cancer. Based on the obtained results, Section 6 concludes the article.
Related works
We apply our proposed method by extending the RuleFit method13 to estimate the HTE in a randomized clinical trial. Before presenting our method, we explain HTE and RuleFit.
Heterogeneous treatment effect
In randomized controlled clinical trials, the target treatments are compared with the standard treatments to test the effectiveness of new treatments. The average treatment effect (ATE) is typically used for estimation. However, the ATE cannot detect the subgroups in which the new treatment is more effective than the standard treatment owing to the average of the population. To identify subgroups, the HTE focuses on the variability in treatment effects that may be attributed to patient factors.2 Let be the outcome variable, where is the number of subjects, be random covariate vectors, where is the number of variables and denotes the transpose, and be the allocation group in two levels, where and are the target treatment group and control treatment group, respectively.
Herein, we describe the settings used in this study. Each subject exhibited only one response to treatment.
The treatment effect considering heterogeneity is defined as
where
Here, is the observed covariate vector, and the HTE is the difference in the conditional mean functions between the two treatment groups. and denote the expected respected responses when subject assigned to the target treatment group and standard treatment group, respectively. In this study, equations (1) and (2) are used to estimate the HTE.
RuleFit
RuleFit is a rule-based ensemble method13 that is designed to handle cases in which the relationships between the outcomes and covariates are even nonlinear. This method also allows the interpretation of results using estimated rules. Given covariates , the model of the RuleFit is defined as
where denotes the intercept, denotes the coefficients of the rule terms, and denotes the coefficient of the linear terms. As seen in equation (3), the RuleFit method consists of a rule term and a linear term. The rule term of the th rule is defined as the following function:
where is the set of all possible values of the covariates and , and is an indicator function that returns if is true, otherwise it returns . can be defined from the interval when is an ordinal or scale variable. Rule- or tree-based ensembles have difficulty approximating linear structures, particularly when the number of training samples is insufficient. As a result, the rules for estimating the appropriate model may be insufficiently generated.13 To improve accuracy and interpretability, the RuleFit model adds a linear term as an additional basis function based on . To reduce the influence of the outliers of the covariates, the linear function is substituted for the “Winsorized” version to provide robustness. The “Winsorized” version of the linear function is defined as
where and are the thresholds of the outliers, which are in the and quantiles of variable . Friedman and Popescu13 recommended , and it was adopted in this study. The coefficient vector of the linear term also depends on the scale. Therefore, equation (4) is normalized as
where is the standard deviation of . Here, is the average standard deviation of the rule under certain conditions.13,19
Proposed method
In this section, we present the framework of the proposed method and its calculation of HTE. Then, we explain the details of the algorithm.
Framework of the proposed method
We define a model of the proposed method, with explanation of the four steps for estimating the HTE based on the proposed method.
Let be the continuous outcome variable, be the covariates, be the treatment group, be the rule function for the prognostic effect, be the rule function for the prescriptive effect, and be the linear function. Given , and , the model of the proposed method is defined as
where is the intercept, is the coefficients of the rule term of the prognostic effect, and is the coefficients of the linear term of the prognostic effect.
is the coefficient of the rule term of the prescriptive effect in the target treatment group, , whereas is that for the control treatment group, . denotes the indication function. The first, second, and third terms in equation (5) are associated with the prognostic effect and do not depend on the treatment. By contrast, the fourth and fifth terms in equation (5) are related to treatment.
To calculate the HTE, the proposed method uses the following four steps:
STEP 1: Generation of a base function.
Given where is a continuous response variable, the th base function explaining is generated as
where is a subset of all possible values of the allocation groups. The right-hand side of equation (6) is the same as the rule function of the original RuleFit. We denote the model of this rule function to emphasize that is included in the covariate values. Thus, equation (6) can be generated using the same procedure as the original RuleFit model.
STEP 2: Rule Sorting.
The set of all rule functions generated in is denoted as . In this step, all generated rules are divided into rules associated with the prognostic effect and rules associated with the HTE as
where and , and denotes the cardinality of the set. is the set of base functions related to the prognostic effect and is denoted by . Additionally, is a set of base functions related to the prescriptive effects. We set , and as a rule definition. Here, and . In other words, in equation (7) is a set of rules in which each element does not contain , whereas in equation (8) is a set in which each element includes . An example of this step is introduced after STEP 4.
STEP 3: Estimation of regression coefficients.
Based on the base functions in , equation (5) is constructed. The optimization problem of the proposed method for STEP 2 is defined as
where is the L norm. and are the coefficient vectors of the rule term and the linear term effects, respectively, for the prognostic effect. is the set of coefficient vectors related to the treatment. and are the parameters of the target treatment group and the control group, respectively. The terms related to the prognostic effect of are the first, second, and the third terms of equation (5), which are not dependent on the prescriptive effect. Here, in the fourth and fifth terms of equation (5), and are treated as one group. The target treatment group and the control group have the same rule function to reflect the concept of a shared basis.9 Each pair of and represents the coefficients within the same group. To calculate the HTE under identical base functions between the two treatment arms, the proposed method uses group lasso15 to prune the rule terms for HTE, whereas the conventional RuleFit method uses lasso16 to prune the base learners. This allows the selection of the same rules between the base functions in the two treatment groups and is expected to ensure comparability of the two treatment groups.
STEP 4: Calculation of HTE.
Using the parameters estimated in STEP 3, the HTE is computed based on the model and allocation groups.
The rules generated in STEP 1 are not separately estimated for the prognostic effect and the prescriptive effect. It needs to classify all rules into rules for treatment effect and those for prognostic effect to estimate HTE. Next, we explain equations (7) and (8) in STEP 2 with an example. First, in equation (7), is the set of rules in that each element does not include . For , we have “age & hemoglobin ,” where age and hemoglobin are covariate variables. If a subject is > years old and has a hemoglobin value under , returns , otherwise, it returns . Here, if , subject belongs to this rule; thus, if , the subject does not belong to this rule. On the other hand, in equation (8), is the set of rules in that each element includes , such as “age & & hemoglobin .” Equation (8) is then interpreted the same way as equation (7). From this classification process, we obtain for the prognostic effect, and for the prescriptive effect. In STEP 3, rule “age & & hemoglobin ” can relate to the prescriptive effect of both treatment group and control group as it includes treatment indicator . These rule functions and each treatment indicator are regarded as one group to allow the HTE to be calculated using a linear combination of regression coefficients related to the prescriptive effect in STEP 4.
Algorithm
In this subsection, we explain rule generation, rule sorting, the regression coefficient estimation, and the HTE calculation using the algorithm specified in the previous section.
Rule generation related to both prognostic effect and prescriptive effect
The algorithm for generating rules is the same as that by Friedman and Popescu.13 Here, the base function is generated from the covariate and allocation group of the training data , where is the number of subjects in the training data. The details are presented in Algorithm 1. Model is formed as , where is the number of tree-based learners . , , , and ( represent the number of tree-based learners, mean depth of the tree-based learners, the shrinkage rate, and the the number of subsamples for each tree-based learner in training, respectively, which are given as hyperparameters. To update model , we use the gradient boosting tree (GBT) method.20 is successively updated by the regression tree model4 using a greedy stagewise approach.
In lines – of Algorithm , the model is initialized as . Next, for each , the pseudo-residual is calculated as shown in line of Algorithm 1. Subsequently, in line , the number of terminal nodes for the th tree-based learner is calculated as
where is the floor function and is the mean depth of tree-based learners.13 This random setting of the number of terminal nodes for each tree enables the production of trees of different sizes. Then, a regression tree providing the disjoint terminal regions is fitted to the pseudo-residual . In line of Algorithm 1, different optimal constants exist in each region. represents the mean of in the th node of the th tree. For calculations from line , we used the R package rpart.21 With these values, is updated as shown in line . After generating regression trees, rule functions are constructed from them, as shown in line . Here, is the total number of rules generated from all trees, which can be calculated as
where denotes the number of terminal nodes in the th tree. In line , the rules are combined.
Rule ensemble and parameter estimation using group lasso
This step provides the two advantages of the proposed method. First, the rule term function generated in is divided into rules related to prescriptive effects and others , thereby indicating that the model in equation (5) contains the base functions relevant to the prescriptive effect and that of prognostic effect, respectively. This enables the estimation of the prescriptive effect for nonlinear relationships while considering the prognostic effects. Second, to select rules that contribute to the outcome, the proposed method uses group lasso15 to interpret the treatment effects based on the selected rules. The conventional RuleFit method uses lasso16 to prune the generated rules. In the case of lasso, if a rule is selected for only one of the two treatment groups, it does not specify whether the rule affects the outcomes. The necessity of this concept is referred to by Powers et al.9 as the shared basis for both the target treatment group and control group.
The details are described in Algorithm 2. As mentioned in the previous section, a linear term is introduced in lines to of Algorithm 2. In line , the generated in is divided into rules related to prescriptive effects and the others , and the model in equation (5). In line , the rules are divided into rules for prescriptive effects and rules for the others. To estimate the parameters using group lasso, the group information of the rule terms is introduced as
where the singleton set of rules is related to the prognostic effects and the set of two pairs includes the prescriptive effect.
The R package grpreg22 was used to estimate parameters, and hyperparameter was selected by cross-validation using this package. The rule terms of the prognostic effects and the linear term in equation (5) are the common terms for both treatment groups, indicating that these parameters do not belong to group; their regularization is treated as a traditional lasso.
Then, regression parameters , and such that equation (9) is minimized. Here, is the estimated intercept, is the estimated coefficients relevant to the prognostic effect, and is the estimated coefficients of the linear term. Additionally, is the estimated coefficients relevant to the HTE, where and correspond to the target treatment group and the control group, respectively.
HTE calculation
In STEP 3, we estimate each parameter of both treatment groups using the common base function to calculate the HTE. From the model in equation (5), equation (2) in our proposed method for the target treatment group and the control group can be expressed as follows:
Regardless of the treatment, the prognostic effects and linear terms of both treatment groups in equations (11) and (12) are the same. From equations (11) and (12), the HTE in equation (1) is calculated as follows:
This indicates that the HTE can be calculated using equation (1) with terms for each treatment arm. Therefore, the HTE of the proposed method can be estimated using the difference in the predicted values of each treatment arm, considering the prognostic effects of the estimation.
Numerical simulation
Numerical simulations were conducted to evaluate the performance of the proposed method. We expected the results of the proposed method to be equivalent to those of the compared methods. In this section, we explain the simulation design and present the results.
Simulation design
Our simulation was designed based on the settings described by Powers et al.9 First, we generated covariate matrix . was randomly distributed from , where is a normal distribution. Our setting was a two-armed randomized controlled trial; therefore, we set the treatment group variable as for the treatment arm, where and signify the target treatment group and the control group, respectively. The treatment group indicator was generated based on Bernoulli distribution, .
Using and , the outcome variable was randomly generated as
where is the true effect related to the outcome of the covariates and is that of the HTE. The error distribution follows the normal distribution, . We generated the training and the test data using the same settings and sample sizes. To compare the performances of the proposed method and the other methods, the simulation was conducted with various factors. The total pattern of the simulation was (Factor 1) (Factor 2) (Factor 3) (Factor 4) = , and each pattern was repeated times.
We present the factors of the simulation settings below.
Factor 1: Sample Size
The sample size was and to examine the influence of the different number of .
Factor 2: Covariate Variables
The number of variables was set , , and to examine the influence of the number of .
Factor 3: Patterns of
is a function that expresses the prognostic effects. We set four different settings, as listed in the second column of Table 1. Scenarios – and – assumed linear function. Scenarios – were generated from the nonlinear function using the indicator function, and Scenarios – were generated by function and exponential function.
Factor 4: Patterns of
generates data relevant to the HTE. Hence, we set the other four settings, as shown in the third column from the left in Table 1. Scenarios and were combinations of linear and quadratic functions. Scenarios , and were indicator functions that assumed quantitative data. Scenarios , and are based on function and exponential function. Scenarios , and assumed no treatment effects.
Scenarios of the simulation. is a function related to the prognostic effect, and is the one related to the heterogeneous treatment effect (HTE).
To evaluate performance accuracy, we used three different evaluation indices. The first was the mean squared error (MSE), calculated as
where is the true HTE value and is the estimated HTE value. The second evaluation index is the relative bias (RBias) against the true HTE, given as
The third evaluation index is Spearman’s correlation coefficient between the true and estimated HTE values. In practical situations, subgroups are detected by subjects ordered based on estimated HTE23; therefore, we added this evaluation. The evaluation indices were calculated by test data that were not used in the model fitting process.
We compared the proposed method to four different tree-based approach methods: causal forest,3 BART,11 causal multivariate adaptive regression spline (Causal MARS),9 and pollinated transformed outcome (PTO) forest.9 In the simulation, we used Rstudio version 1.2.5033. We used the R packages grf24 for causal forest, bartCause11 for BART, and causalLearning25 for the Causal MARS and PTO forest. In the parameter settings of each compared method, causal forest was set to default, apart from “tune.parameters,” which was set to “all.” Parameter “method.trt” in BART was set to “none.” The parameter settings in Causal MARS and PTO forest were set to default as well.
Plots of mean squared error (MSE) for . The horizontal axis is the number of covariate variables, and the vertical axis is the MSE.
Simulation results
The results are presented in Figures 1 to 6. First, we explain the results of MSE. Figure 1 presents the MSE for and Figure 2 presents the MSE for . The horizontal axis represents the number of , and the vertical axis represents the MSE values. Both figures are drawn by method and plotted using the scenario in Table 1. Overall, the results of the proposed method were better, particularly in cases where the settings of the true HTE were more complicated nonlinear functions. In many scenarios, the proposed method was stable, regardless of the values of and , whereas the MSE of causal forest and BART increased based on the value of . Next, we consider the results for the scenarios. In Scenarios and for (the leftmost column of Figure 1), in which setting of the true HTE was a combination of linear and quadratic functions, the MSE values of Causal MARS were found to be the lowest. The proposed method was superior to the other compared methods, apart from PTO forest with and in Scenario . For Scenarios and (the second column from the left of Figure 1), whose HTE setting was piecewise constant, the proposed method and PTO forest were superior to the other methods in Scenarios and . For and in Scenario , the MSE values of the proposed method were smaller than those of PTO forest, although it was slightly increased at . The MSE of PTO forest was smaller in Scenario . In Scenarios and for (the second column from the right of Figure 1), whose HTE setting was a combination of function and exponential function, the proposed method was not smaller than Causal MARS and PTO forest; however, the differences were rather small compared with those of the causal forest and BART. Regarding the trend of the MSE values, the proposed method, Causal MARS, and PTO forest remained unchanged as the value of increased. The MSE values of the causal forest and BART increased significantly as the number of variables increased. In Scenarios and (the rightmost column of Figure 1), the MSE values of the proposed method and BART were estimated as , and causal forest estimated nearly the true value. On the other hand, Causal MARS and PTO forest in Scenarios and estimated the presence of the treatment effect, and the trend depending on was unstable. In the case of , Scenarios and (the leftmost column of Figure 2), Causal MARS was better than the other methods, however, the proposed method was superior to PTO forest in all scenarios. In Scenarios and with (the second column from the left of Figure 2), the proposed method was superior to the other methods in Scenarios and was nearly the same as PTO forest in Scenarios and . In Scenario , PTO forest was better than the proposed method; however, the difference between these methods was closer than that with in the same scenario. In all scenarios, the trend of the MSE with respect to the number of showed a tendency similar to that of the case of . The MSE values of the proposed method, Causal MARS, and PTO forest were not influenced by the number of , whereas those of causal forest and BART increased.
Plots of mean squared error (MSE) for . The horizontal axis is the number of covariate variables, and the vertical axis is the MSE.
Plots of bias for . Each scenario is depicted by , and . The horizontal axis is the method, and the vertical axis is the bias. Scenarios and were excluded due to the bias not being calculated by .
Plots of bias for . Each scenario is depicted by , and . The horizontal axis is the method and the vertical axis is the bias. Scenarios and were excluded due to the bias not being calculated by .
Plots of correlation for . Each scenario is depicted by and . The horizontal axis is the method and the vertical axis is the correlation. Scenarios and were excluded due to the correlation not being calculated by .
Plots of correlation in . Each scenario is depicted by , and . The horizontal axis is the method and the vertical axis is the correlation. Scenarios and were excluded due to the correlation not being calculated by .
Next, we compared the relative bias between and , as displayed in Figures 3 and 4. Figure 3 shows the bias of . Each scenario had plots for and . Plots for the bias in Scenarios and were not created because was set to . Almost all results of the median values were positive for all methods. The proposed method, Causal MARS, and PTO forest were mostly stable even when increased. However, BART and causal forest showed a larger bias as increased. These results indicate that the proposed method, Causal MARS, and PTO forest were not dependent of the number of , whereas BART and causal forest increased the bias with the influence of the number of . Next, we examined the results of each scenario. In Scenarios , and , the setting of the true HTE was a combination of linear and quadratic functions, the median values of Causal MARS were close to the true value, and PTO forest included a bias of . In Scenarios and , where the HTE was set as a piecewise constant, the median of PTO forest was nearly . The proposed method performed better next to PTO forest, however, causal forest and BART were greater than at . In Scenarios , and , the HTE setting was a combination of the and exponential functions, the median of almost all methods was close to . The results of the proposed method were slightly > , whereas the range of the results was narrower than those of causal forest and BART. Figure 4 shows the results for . The tendency for was similar to that of in all scenarios.
We next show the results of the correlations between the estimated treatment effect and the true treatment effect . The results are shown in Figures 5 and 6. Figure 5 presents the results for . The proposed method and the compared methods were stable in almost all scenarios regardless of , apart from for BART as its correlation was affected by the value of . Causal MARS had the highest correlation in Scenarios , and , and the correlation of the proposed method was higher than that of PTO forest. In Scenarios and , the proposed method had a higher correlation than the compared methods apart from Scenario when . In Scenarios and , the correlation of all methods were close to , except for BART at . The results of are presented in Figure 6, where the overall correlation was slightly higher than that at ; however, the trends of the results for were similar to those for .
From these results of MSE, the proposed method exhibited a stable tendency as the number of variables increased, whereas causal forest and BART were affected by the increase in the number of variables. These trends were confirmed by those results of the RBias and correlation coefficients. Moreover, in most scenarios of the true treatment effects that comprise threshold functions, the MSE of the proposed method showed a better performance than the other compared methods and was better or very close to the MSE of Causal MARS and PTO forest for scenarios in which the true treatment follows a combination of and exponential functions. The tendencies of the results for Rbias and correlation coefficients were similar to those of the MSE. These results confirm the estimation performance of the proposed method with nonlinear structures. However, in the scenarios involving a combination of linear and quadratic functions in the true treatment, Causal MARS performed better than the proposed method, whereas the proposed method yielded better results than the other four compared methods. Causal MARS captured the structure of the linear tendency; however, the estimation performance was inferior for nonlinear structure. In this simulation, we confirmed that the proposed method performed well when the true treatment followed a nonlinear structure, and it maintained an estimation accuracy in the near-linear structure.
Real data application
In this section, we demonstrate the usefulness of the proposed method by applying it to actual clinical study data named AIDS Clinical Trials Group Study 175 (ACTG 175)26 from the package speff2trial27 in the R software. We also evaluate the HTE estimation by using the same data.
Application of the proposed method to ACTG 175
In this double-blind randomized study, subjects infected with human immunodeficiency virus type 1 (HIV-1) at to per mL CD4 cell counts were randomly assigned to one of four arms: zidovudine with didanosine, zidovudine with zalcitabine, zidovudine only, or didanosine only. We selected subjects from the zidovudine plus zalcitabine group as the target treatment group and subjects from the zidovudine only group as the control group. The outcome was defined as the difference in CD4 cell counts at 20 weeks from their baseline. Table 2 lists the covariates selected. To apply the data, the data of each arm were split into training and test data. The model was fitted using the training data with subjects, and the HTE was predicted for subjects using the test data. For the hyperparameters of the proposed method, the number of trees was set to , the shrinkage rate was set to , and the mean depth of each tree-based function was set to .
Selected covariates at baseline in a real data application.
Variable name
Description
age
age in years
wtkg
weight in kg
karnof
Karnofsky score, a scale of
preanti
number of days of antiretroviral therapy previously received
cd40
CD4 cell count at baseline, cells/mm3
cd80
CD8 cell count at baseline, cells/mm3
hemo
hemophilia, no, yes
homo
homoseuxal activity, no, yes
drugs
history of intravenous drug use, no, yes
oprior
non-zidovudine antiretroviral therapy prior to initiation of study treatment, no, yes
race
white, non-white
gender
female, male
str2
antiretroviral history, naive, experienced
symptom
symptom indicator, asymptomatic, symptomatic
Based on the real data application results, we obtained estimation results and the rules for the proposed method. For the estimation results, we ordered the estimated HTE values in ascending order and divided them into three equal portions: low, middle, and high. If the HTE is properly estimated, the mean of the outcome is expected to be low, middle, and high, corresponding to the low, middle, and high groups, respectively. The procedure used to divide the groups is described below. First, the sample IDs were arranged in ascending order of the estimated HTE. This ordered sample ID list was then divided into three groups: low for subjects, middle for subjects, and high for subjects from the test data. The mean and standard error of the outcome for each treatment group were then calculated for each ordered group. If the HTE is properly estimated, the low group is expected to show the smallest difference in the mean of the outcome between the two treatment groups. Conversely, the high group is expected to show the largest difference in the mean of the outcome. Next, we show the results of the three groups ordered by treatment arm in Figure 7. The bar pairs shown in the left, middle, and right correspond with the results of the small, middle, and high groups, respectively. The green and pink bars represent the target treatment group and the control group, respectively. The differences between the treatment arms mostly increased in the high group, which confirms that the estimated results of the proposed method exhibited a trend of a magnitude of outcome value.
Plots of the distribution of the outcome, mean, and standard error by each arm in the low, middle, and high groups. The vertical axis shows the outcome and the horizontal axis shows the treatment. The green bars and plots represent the treatment group, and the pink bars and plots represent the control group. The leftmost green and pink bars are the low group, whose estimated heterogeneous treatment effect (HTE) values were smaller in order. The middle bars and plots show the middle group, and the rightmost green and pink bars and plots show the high group.
Additionally, we calculated the rule importance and its support to observe the subgroups of the data.13 An advantage of the RuleFit method is its rule-based interpretability, and the conventional RuleFit method evaluates the importance of the rule and linear terms to the coefficient values. We focused on the rule importance13 of rule terms related to the HTE values. Support refers to the percentage of subjects who meet the conditions of the rule. The th importance for the rules of the proposed method are calculated as follows:
where reflects the support of the rule . The support in th rule is computed as
In this application, rules were chosen to estimate the HTE. Figure 8 shows the rule importance on the left and its support on the right. On the left side of Figure 8, the rules with high rule-importance values are indicated by pink bars. The pink bar on the right side of Figure 8 indicates support values > .
Plots of rule importance and the support of the rule importance. The left bar plot describes rule importance, the horizontal axis shows the importance value of the rule, and the vertical axis shows the rule. The right bar plot is the support of the rules. The horizontal axis describes the support value, which is depicted in pink if the value is > .
Notably, the proposed method can represent the characteristics of the subgroups relevant to the treatment effects as rules. To demonstrate this capability, we depicted a distribution of rules for the estimated HTE and their support values in Figure 9. The vertical axis represents the estimated HTE for each rule, and the horizontal axis represents the support value corresponding to each rule. From this plot, we can observe the overall trend in the results. There was wide variation in the HTE values of each rule. Many of the support values were between and , while some points showed higher values. In particular, rule # , for example, had a high HTE value, whereas its support value was small, indicating that the subgroup that fits rule # did not meet < % of this data. In contrast, the HTE of rule # was , and its support value was . Although the HTE was not high, % of the subjects belonged to this subgroup, indicating that this subgroup was suitable for the subjects in this study. To select the subgroups, we employed which the rules had rule importance more than their mean value, and with HTE value more than . The rules depicted by the red points in Figure 9 are listed in Table 3.
Plot of the distribution of estimated heterogeneous treatment effect (HTE) values of selected rules and their support values. The vertical axis shows the HTE value, and the horizontal axis shows the support value. The number represents the rule number. The red points designate rules whose rule importance is greater than its mean and its HTE . The purple points designate rules whose rule importance is greater than its mean and its HTE .
Rule importance, the heterogeneous treatment effect (HTE), and its support of the proposed method for a subset of the selected rules.
Rule #
Rule
Rule importance
HTE
Support
wtkg & age & cd80
cd80 & cd40
preanti & wtkg & cd40
gender & wtkg
age & gender
cd40 & age & cd40
preanti & cd40 & wtkg
cd80 & wtkg
cd80 & karnof & age
gender & wtkg & wtkg
cd40 & age & cd40
cd40 & age
homo & wtkg
age & age
wtkg & cd40 & cd40
cd80 & wtkg & age
The HTE of the selected rules was positive, so the subgroups meeting these rules had more effective treatment with combined zidovudine and didanosine therapy than with zidovudine-only therapy. This result is consistent with the ACTG 175 study results.26,28 Based on the context of rule “wtkg & age & cd80 ,” < kg and years old and < cells/mm3 in CD8 cell counts benefited from the combination treatment. Figure 10 shows the ATE and the % confidence interval (CI) of the selected rules listed in Table 3. The % CI for the ATE of selected rules did not include , indicating that the treatment group performed better in these rules. The point estimations of the ATE in rules were higher than the overall ATE, and the confidence intervals of rules # and were higher than the overall ATE. This shows that these subgroups benefited from the targeted treatment.
Forest plot of the rules in Table 3. The rules selected in Table 3 are listed in the first column, the subgroup size of each treatment group is shown in the second and third columns, respectively, the average treatment effect of each rule is depicted in the fourth column, and its % confidence interval is in the fifth column.
Comparison between the proposed method and control method
In this subsection, we report the evaluation of predictions using real data. The proposed method is expected to enhance the estimation accuracy through the combination of the prognostic and prescriptive rule terms. Therefore, we compare the prediction accuracy in the real data application between the proposed method and the RuleFit method which contains rule term for only the prognostic effect and linear term. We used the same data in Section 5.1. We conducted -fold cross-validation and the mean of root mean squared error (RMSE) was calculated as
where is the outcome in the test data and is the size of each fold.
Next, we explain the procedure of the evaluation. It was performed based on the following steps:
STEP 1: The data is randomly split into as .
STEP 2: Set .
STEP 3: Let the th split data as the test data and the merged data of as the training data.
STEP 4: Apply equation (5) in the proposed method to the training data and estimate all regression parameters of and .
STEP 5: With the parameters in STEP 4, equation (16) is employed by the proposed method to calculate the prediction value of the test data, and the RMSE is computed. In contrast, the control method used equation (17) for the prediction and calculated the RMSE.
where and represent the predicted values by the proposed method and control method, respectively, and and are the covariates and the treatment arm of the test data. Here, the parameters of the proposed method, , and , are obtained from equation (16). The coefficients , and and the rule term for prognostic effect and linear term in equation (17) were the same as those of the proposed method in equation (16).
STEP 6: If , this process ends. If , return to STEP 3.
The mean (standard deviation) of the RMSE of the proposed method was , while that of the rule ensemble comprising the prognostic rule term and linear term was . The proposed method was confirmed to provide reasonable prediction accuracy for this data application by including not only the prognostic rule term, but also the rule term related to the HTE.
Discussion and conclusion
We proposed a novel framework based on the RuleFit method to estimate the HTE. Through numerical simulations, we found in many scenarios that compared with other methods, the proposed method estimates with good stability regardless of the number of covariates . Based on Spearman’s correlation coefficient results, we confirmed that the proposed method captures the appropriate order of the magnitude of correlation coefficients between the true and predicted treatment effects. In most scenarios, the MSE of the proposed method was better than that of the compared methods, where the true treatment effects were formed from the threshold function. The relative bias in these scenarios was nearly and had a high correlation. In scenarios where the treatment effects consisted of a combination of and exponential functions, the MSE values of the proposed method were close to those of Causal MARS and PTO forest. The proposed method maintained a low bias, and its correlation values were nearly the same as those of Causal MARS and PTO forest in these scenarios. Conversely, when the true treatment effect comprised both linear and quadratic functions, the MSE of Causal MARS was better than that of the proposed method. Nonetheless, the proposed method exhibited superior performance over Causal MARS in scenarios in which the true treatment effects included threshold functions or no treatment effects. The results of these simulations confirmed that the proposed method performed equivalently to the compared methods. Focusing on the bias between the differences of and in the proposed method, the median of bias in was closer to compared to in and for Scenario and in all for Scenarios and . With these settings, the values of the bias difference between and were around .
In contrast, the proposed method generates rules by using the rpart module of the R package, while bias issues in rpart has been raised.29,30 Therefore, we also compared the proposed method with rpart to the proposed method that generates rules using the method with conditional inference trees (ctree) in partykit.31 The evaluation indices were the same as those used for the numerical simulation. The overall results of the proposed method with rpart were better than those of the proposed method with ctree. Notably, ctree tends to exhibit lower complexity when generating rules.19 The generated rules were divided into those associated with the HTE and those associated with the prognostic effect in the proposed method. That is, the number of rules related to HTE was lower than that of the original RuleFit method. As a result, the proposed method with ctree was unable to estimate the HTE in many cases. From additional simulations, the use of rpart was confirmed to be acceptable in the proposed method. Furthermore, adaptive group lasso32 may be a candidate for the regularization of the proposed method. As a result of the comparison of the proposed method with adaptive group lasso, which used rpart for rule generation, the proposed method with group lasso had a better performance in many scenarios. Adaptive group lasso estimates less important variables as more often than group lasso. Additionally, the rules for HTE are selected less than the original RuleFit. Therefore, we considered that these may have led to estimating many number of HTE as in the proposed method with adaptive group lasso, similar to the proposed method using ctrees. Therefore, the group lasso was found to be reasonable for regularization based on our simulation. The plots of the additional simulation results are presented as Supplemental Material.
Through its application to real clinical trial data, we confirmed the usefulness of the proposed method in terms of the interpretability of the estimated results using the estimated rules and the validity of the selected rules through -fold cross-validation. The selected rules were visually represented by the HTE value, rule importance, and support value, which provided suggestions for the interpretation of subgroup characteristics. Though we confirmed the interpretability of the rules as a model, whether the selected rules can be interpretable in practice requires further consideration, because there may be varying interpretations depending on the different domain perspectives. Discussion with specialists in clinical practice is therefore required.
Here, focusing on metalearners,33 the proposed method corresponds to S-learner, which uses the rule function as the base function to estimate HTE. Metalearner is a framework in machine learning for causal inference that estimates HTE. Although other learner methods, such as T-learner (where “T” denotes “two”), are formed by two models per treatment group, S-learner, where “S” denotes “single,” provides a single model for HTE estimation. The proposed method is based on the S-learner due to the structure of the framework, which uses the rule function as the base function for estimating the HTE. For both S-learner and T-learner, HTE is estimated directly using the predictions of the regression model fitted to the responses. However, because T-learner constructs models separately between each treatment group, it is difficult to estimate the HTE considering that the treatment and control group share common effects.33 The results of previous numerical simulations34 showed that S-learner had a better performance than T-learner in some situations. Moreover, when calculating the HTE based on the difference between each treatment group with T-learner, the common effects between the two treatment groups were also estimated separately. This makes it difficult to interpret treatment-specific effects because the estimated treatment effect includes the prognostic effect. S-learner is the only learner that allows the construction of a model with prognostic effect and interaction terms. Additionally, the proposed framework adopted the idea of a shared basis,9 which is based on T-learner, using the S-learner framework to ensure the comparability of the HTE between the two treatment groups. We therefore incorporated the advantages of S-learner into the proposed method for easy selection of the same rules, considering that the method contains the rule terms of both treatment groups in one model.
As for future works, five things need to be considered. First, further settings should be evaluated in the numerical simulations to clarify the effectiveness of the proposed method. The treatment effect in equation (14) was set symmetrically following previous studies, but this setting should be further examined. Next, although the MSE of the proposed method did not vary depending on the number of in the present setting, it is necessary to further examine how the estimation results will change with the value of in other settings. Additionally, the proposed method compared the bias between and , however, it is necessary to verify what changes in the performance of bias in increasing . In addition to these simulations, theoretical analysis also needs to be conducted. Fourth, we showed that the proposed method provided rules related to treatment effect. However, in clinical practice, interpreting rules requires knowledge of the relevant domain, so discussion with professionals is required in the interpretation of the selected rules. In the real data applications considered in this study, we found that the results of proposed method were comparable to those of causal forest in terms of variable importance. We have provided the evaluation results as Supplemental Material. However, these findings require confirmation with other real data. Finally, Figure 7 visualizes the HTE evaluation, however, the true value of HTE remains unknown. Addressing this issue should be considered from various perspectives, such as the method proposed by Yadlowsky et al.35
Supplemental Material
sj-pdf-1-smm-10.1177_09622802241247728 - Supplemental material for Causal rule ensemble method for estimating heterogeneous treatment effect with consideration of prognostic effects
Supplemental material, sj-pdf-1-smm-10.1177_09622802241247728 for Causal rule ensemble method for estimating heterogeneous treatment effect with consideration of prognostic effects by Mayu Hiraishi, Ke Wan, Kensuke Tanioka, Hiroshi Yadohisa and Toshio Shimokawa in Statistical Methods in Medical Research
Footnotes
Acknowledgements
The authors sincerely thank the two reviewers and the associate editor for their assessments and constructive comments related to improving this article. The authors are also grateful to Benjamin Phillis at the Clinical Study Support Center, Wakayama Medical University Hospital, for his helpful advice in refining the language and expression when improving this article.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship and/or publication of this article.
ORCID iDs
Mayu Hiraishi
Ke Wan
Supplemental material
Supplemental material for this article is available online.
References
1.
HollandPW. Statistics and causal inference. J Am Stat Assoc1986; 81: 945–960.
2.
GailMSimonR. Testing for qualitative interactions between treatment effects and patient subsets. Biometrics1985; 41: 361–372.
3.
WagerSAtheyS. Estimation and inference of heterogeneous treatment effects using random forests. J Am Stat Assoc2018; 113: 1228–1242.
4.
BreimanLFriedmanROlshenJ, et al. Classification and regression trees. New York: Wardsworth, 1984.
5.
SuXTsaiCLWangH, et al. Subgroup analysis via recursive partitioning. J Mach Learn Res2009; 10: 141–158.
BrehenyP. grpreg: Regularization Paths for Regression Models with Grouped Covariates. R package version 3.4.0., 2021.
23.
TianLAlizadehAAGentlesAJ, et al. A simple method for estimating interactions between a treatment and a large number of covariates. J Am Stat Assoc2014; 109: 1517–1532.
PowersSQianJHastieT, et al. causalLearning: Methods for heterogeneous treatment effect estimation. R package version 1.0.0., 2022.
26.
HammerSMKatzensteinDAHughesMD, et al. A trial comparing nucleoside monotherapy with combination therapy in HIV-infected adults with cd4 cell counts from 200 to 500 per cubic millimeter. New Engl J Med1996; 335: 1081–1090.
27.
JuraskaMGilbertPBLuX, et al. speff2trial: Semiparametric efficient estimation for a two-sample treatment effect. URL https://CRAN.R-project.org/package=speff2trial. R package version 1.0.5., 2022.
28.
SaravolatzLDWinslowDLCollinsG, et al. Zidovudine alone or in combination with didanosine or zalcitabine in HIV-infected patients with the acquired immunodeficiency syndrome or fewer than 200 cd4 cells per cubic millimeter. Investigators for the terry beirn community programs for clinical research on aids. N Engl J Med1996; 335: 1099–1106.
ShihYSTsaiHW. Variable selection bias in regression trees with constant fits. Comput Stat Data Anal2004; 45: 595–607.
31.
HothornTZeileisA. partykit: A modular toolkit for recursive partytioning in R. URL http://partykit.r-forge.r-project.org/partykit/. Journal of Machine Learning Research, 2015, 16: 3905–3909.
32.
WangHLengC. A note on adaptive group lasso. Comput Stat Data Anal2008; 52: 5277–5286.
33.
KünzelSRSekhonJSBickelPJ, et al. Metalearners for estimating heterogeneous treatment effects using machine learning. Proce Nat Acad Sci2019; 116: 4156–4165.
34.
NieXWagerS. Quasi-oracle estimation of heterogeneous treatment effects. Biometrika2020; 108: 299–319.
35.
YadlowskySFlemingSShahN, et al. Evaluating treatment prioritization rules via rank-weighted average treatment effects. Arxiv. arXiv:2111.07966, 2021.
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.