 Research
 Open Access
 Published:
A comparative study of forest methods for timetoevent data: variable selection and predictive performance
BMC Medical Research Methodology volume 21, Article number: 193 (2021)
Abstract
Background
As a hot method in machine learning field, the forests approach is an attractive alternative approach to Cox model. Random survival forests (RSF) methodology is the most popular survival forests method, whereas its drawbacks exist such as a selection bias towards covariates with many possible split points. Conditional inference forests (CIF) methodology is known to reduce the selection bias via a twostep split procedure implementing hypothesis tests as it separates the variable selection and splitting, but its computation costs too much time. Random forests with maximally selected rank statistics (MSRRF) methodology proposed recently seems to be a great improvement on RSF and CIF.
Methods
In this paper we used simulation study and real data application to compare prediction performances and variable selection performances among three survival forests methods, including RSF, CIF and MSRRF. To evaluate the performance of variable selection, we combined all simulations to calculate the frequency of ranking top of the variable importance measures of the correct variables, where higher frequency means better selection ability. We used Integrated Brier Score (IBS) and cindex to measure the prediction accuracy of all three methods. The smaller IBS value, the greater the prediction.
Results
Simulations show that three forests methods differ slightly in prediction performance. MSRRF and RSF might perform better than CIF when there are only continuous or binary variables in the datasets.
For variable selection performance,
When there are multiple categorical variables in the datasets, the selection frequency of RSF seems to be lowest in most cases. MSRRF and CIF have higher selection rates, and CIF perform well especially with the interaction term.
The fact that correlation degree of the variables has little effect on the selection frequency indicates that three forest methods can handle data with correlation.
When there are only continuous variables in the datasets, MSRRF perform better. When there are only binary variables in the datasets, RSF and MSRRF have more advantages than CIF.
When the variable dimension increases, MSRRF and RSF seem to be more robustthan CIF
Conclusions
All three methods show advantages in prediction performances and variable selection performances under different situations. The recent proposed methodology MSRRF possess practical value and is well worth popularizing. It is important to identify the appropriate method in real use according to the research aim and the nature of covariates.
Background
Survival analysis, also known as timetoevent analysis, is a branch of statistics investigated in how long it takes for certain events to occur, and estimating the relevant important factors. A key feature of these timetoevent datasets is that they contain either censored or truncated observations, in which right censoring is the most commonly encountered type [1]. The Coxproportional hazards regression model (Cox model) is a default choice in analyzing rightcensored timeto event data [2]. As a semiparametric method, its flexibility derives from requiring no specifications of the shape of the hazard function, which means no assumption is required on the overall shape of survival times [3]. However, its restrictive proportional hazards assumption is always not met in applications [4,5,6]; what’s more, the covariates are assumed to have an additive effect on the log hazard ratio, which may become unsuitable for data containing nonlinearity or high dimensional covariates [7, 8]. Machine learning methods can deal with these data. Machine learning methods have been widely concerned in the biomedical field because of their great abilities for selfstudying, classification, prediction and feature identification, among which the forests approach is especially popular with scholars and researchers.
The random forests (RF) approach was first proposed by Breiman [9]. RF construct ensembles from tree base learners, and then combine the results to a final decision. In RF, randomness is introduced in two forms: First, each of the randomly drawn bootstrap samples of the data is used to grow a tree [10]. Second, at each node of the tree, a randomly selected subset of covariates is chosen as candidate variables for splitting [11]. With CART being base learner, the original RF primarily focus on classification and regression problems [12]. Random survival forests (RSF) methodology proposed by Ishwaran et al. extends RF method to rightcensored timetoevent data [13, 14]. RSF can easily handle high dimensional covariate data as RF [15,16,17]. However, RSF also inherit the drawbacks of RF, especially the selection bias towards covariates with more possible split points, which may result in bias of other parameter estimates such as variable importance measures [18].
Conditional inference forests (CIF) methodology is known to reduce selection bias via a twostep split procedure implementing hypothesis tests [19]. Instead of maximizing a splitting criterion over all possible splits simultaneously in RSF, CIF separate the algorithms for the best split variable search and the best split point search [20]. In the first step, a linear rank association test is performed to determine the optimal split variable. In the second step, the optimal split point is determined by comparing twosample linear statistics for all possible partitions for the split variable. Despite the two steps are both implemented within the theory of permutation tests, there is a change in the statistical approach for the split variable and the split point selection, which increases the time and storage of CIF application.
Random forests with maximally selected rank statistics (MSRRF) methodology proposed by Wright et al. seems to be a great improvement towards RSF and CIF [21]. Following the basic concept of CIF, MSRRF use a twostep split procedure via hypothesis tests, which means MSRRF also separate the variable selection and the split point procedures. However, distinguished from CIF, binary split via maximal log rank score is used consistently in both steps of MSRRF, which saves time and reduces bias. Log rank score is one of the most commonly used criterion statistics in RSF. What’s more, the authors Wright et al. introduced a new package ranger proved to be faster [22]. This package can be used in both C and R languages, which makes MSRRF more feasible.
Despite the development of survival forests, only a few studies have been done to compare the forests methods. MSRRF’s authors did simulations to illustrate their methods with RSF and CIF as reference, including split variable selection performance for the null case of no association between covariates and survival outcome, prediction performance under several situations, and runtime performance [21]; Nasejje et al. did simulation study to compare the prediction performance between RSF and CIF with all variables associated with the survival outcome, while split variable selection performance was not investigated [23]; Du et al. compared the prediction performance between RSF and CIF on real cancer dataset without split variable selection performance [24]. The previous simulation researches majorly focused on the predictive performance of the methods without considering the variable selection performance. What’s more, proposed in 2016, MSRRF methodology still has not been implemented in those recent researches, while RSF and CIF retain the wide use. The main aim of this research is popularize the MSRRF methodology and to provide advices of using the survival forests methods concerning on variable selection and prediction. We think it’s essential to study in depth and compare the survival forests under different situations. In this paper we used simulation study and real data study to compare prediction performances and variable selection performances among three survival forests mentioned above, including RSF, CIF and MSRRF.
The article is structured as follows: section 2 “Methods” describes the three methods used. In section 3 “Simulation study”, we present the simulation study together with the simulation results. Section 4 “Application study” introduces the two real datasets used in this study and also gives the corresponding real data analysis results. Lastly section 5 “Discussion and conclusion” presents the discussion and conclusions drawn from this study.
Methods
Random survival forests
Random survival forests (RSF) method is an extension of Brieman’s RF method to right censored timetoevent data [13]. Given the original data with N subjects and M features, RSF algorithm is described as follows:

1.
Draw B bootstrap samples from the original data. Bagging generates B new training sets with replacement [10]. If the size of each training set equals to N, each subject in the original data has a probability of (1–1/N)^{N} not being selected. In this way, on average 36.8% of the data would be excluded for each bootstrap sample, called outofbag data (OOB data) [9].

2.
Grow a binary survival tree for each bootstrapped sample. At each node of the tree, randomly select m (m < < M) features for splitting. In practical settings m is usually set to m= \(\sqrt{M}\) or m = log_{2}M. A split is made using the candidate feature and its cutoff point that maximizes the survival differences between daughter nodes under a predetermined split rule [14].

3.
Grow the tree to full size under the prespecified constraints.

4.
Calculate a cumulate hazard function (CHF) and a survival function (SF) for each tree. Average over all trees to obtain the ensemble CHF. In this way, one estimate for each individual in the data is calculated.

5.
Using OOB data, calculate prediction error for the ensemble CHF and variable importance measures (VIM) of M features.
Researchers have come up with several splitting rules for RSF, among which four rules are representative [13], including: a logrank splitting rule that splits nodes by maximization of the logrank test statistic, a logrank score splitting rule that splits nodes by maximization of a standardized logrank score statistic, a conservationofevents splitting rule that splits nodes by finding daughters closest to the conservationofevents principle, a random logrank splitting rule that splits nodes by the variable with maximum logrank statistic (at its predetermined random split point). Logrank splitting rule and logrank score splitting rule are the most popular rules in practical use. Logrank splitting rule is described as follows:
The logrank test for a parent node splitting at the cutoff point value c for predictor X_{j} is
Let t_{1} < t_{2} < … < t_{K} be the distinct death times in the parent node, d_{k} and Y_{k} equal the number of deaths and individuals at risk at time t_{k} in the parent node respectively. Y_{k} = Y_{k, l} + Y_{k, r}, d_{k} = d_{k, l} + d_{k, r}. d_{k, l} and Y_{k, l} represent those in the left daughter node, which means Y_{k, l} = {i : t_{i} ≥ t_{k}, X_{ji} ≤ c}. The value of L(X_{j}, c) is the measure of node separation. The larger the value of L(X_{j}, c), the greater the survival difference between the two groups. The best split is determined by finding the predictor X_{j∗} and split value c* with maximum statistic value.
RSF naturally inherit many of RF’s good properties [16], including: nonparametric, flexible, and can easily handle high dimensional covariate data, which are essential in the genetics field; RSF are highly data adaptive and model assumption free, which are especially helpful when associations between predictors and outcome are complex such as nonlinear effects or highorder interactions; what’s more, VIM and OOB estimates can be obtained through the forest growing. RSF can be performed through several packages. Here we use R package randomForestSRC [25]. Logrank splitting rule is implemented.
Conditional inference forests
Conditional inference forests (CIF) method is a tree ensemble method utilizing the theory of permutation tests [19, 26]. As CART serves as base learner in RF, this kind of algorithms has a variable selection bias towards variables with many split points. This bias is induced by maximizing a splitting criterion over all possible splits, whereas the chance to find a good split increases if the variable has more split points. The authors thought even an uninformative variable could also sit high up on the tree’s structure, and then result in biased estimate [18]. CIF are known to solve this problem by taking statistical significance into account [27].
CIF construct forests with conditional inference tree (CIT) as base learner [19]. Instead of maximizing a splitting criterion over all possible splits, CIT separates the algorithms for selecting the best split covariate from the best split point search. CIT first conducts association tests to determine the best split covariate, and then makes the best binary split based on standardized linear statistic.
Same as RSF, assume the original data with N subjects and M features, and a new training set is defined as \({\mathcal{L}}_n=\left\{\left({Y}_i,{X}_{1i},\dots, {X}_{Mi}\right);i=1,\dots, n\right\}\). At step 1 variable selection of CIT splitting procedure, we need to decide whether there is any information about the response variable covered by covariate X_{j}, which is indicated by partial hypothesis of independence \({H}_0^j:D\left(Y{X}_j\right)=D(Y)\) with global null hypothesis \({H}_0=\bigcap_{j=1}^M{H}_0^j\). The association between Y and X_{j}, is measured by linear statistics of the form
Where w is case weight indicating each node, g_{j} is a nonrandom transformation of the covariate X_{j}, The influence function h depends on the responses (Y_{1}, …, Y_{n}) in a symmetric permutation way. These functions may differ in practical settings, such as in timetoevent data the influence function may be chosen as log rank score or Savage score. The evaluation of \({T}_j\left({\mathcal{L}}_n,w\right)\) is based on the distribution of Y and X_{j}, which often remains unknown. However, at least under the null hypothesis one can dispose of this dependency by fixing the covariates and conditioning on all possible permutations of the responses, which is known as the theory of permutation tests. Later in the algorithm, \({T}_j\left({\mathcal{L}}_n,w\right)\) is standardized to univariate test statistics \(u\left{T}_j\left({\mathcal{L}}_n,w\right)\right\) for further comparison. If we are not able to reject H_{0} at a prespecified level α, we stop the recursion, otherwise select X_{j∗} with the strongest association (the smallest P value) as the best split variable.
Once we have selected a covariate X_{j∗} at step 1 of the algorithm, an optimal split point should be determined at step 2. The goodness of a split is evaluated by a twosample linear statistics which is a special case of the linear statistic used at step 1. For all possible split points of X_{j∗} the linear statistic is
The twosample statistic measures the discrepancy between two daughter nodes. The split c∗ with a standard test statistic \(u\left{T}_{j\ast}^c\left({\mathcal{L}}_n,w\right)\right\) maximized over all possible splits is established.
CIF differ from RF and RSF with respect to not only base learner but the aggregation scheme applied. Instead of averaging predictions directly as in RF, the aggregation scheme works by averaging observation weights extracted from each tree. CIF are implemented in the R package called party [28].
Survival forests with maximally selected rank statistics
Survival forests with maximally selected rank statistics (MSRRF) method was proposed by Wright et al. in 2017 [21]. The authors thought an obvious disadvantage of standard CIF was a change in the statistical approach for split variable and split point selection. As is introduced above, the association test for selecting the split variable is based on a linear rank statistic, while the optimal split is a dichotomous thresholdbased split. MSRRF are designed to deal with those problems by a statistical test for binary splits using maximally selected rank statistics [29].
The forest algorithm of MSRRF is identical with that of RSF. Randomness is induced in both selections of samples and covariate subsets. Finally results of the trees are aggregated through vote or average. The split procedure of MSRRF follows the basic concept of CIF, which means a twostep procedure via hypothesis tests separating variable selection and split point search. Maximally selected rank statistics for survival endpoints is implemented through logrank score, which also can be used in RSF and CIF as we mentioned above.
Consider a training set \({\mathcal{L}}_n=\left\{\left({Y}_i,{X}_{1i},\dots, {X}_{Mi}\right);i=1,\dots, n\right\}\) at a node, for timetoevent data Y_{i} = (t_{i}, δ_{i}), where t_{i} is survival time and δ_{i} is censoring indicator. To describe the logrank score splitting rule, assume the covariate X_{j} has been ordered so that X_{j1} ≤ X_{j2} ≤ … ≤ X_{jn}. The logrank score is defined as a “rank” for each survival time t_{i}
Where Γ_{i} is the number of observations with survival time up to t_{i}. The linear rank statistics for a split at point c is the sum of all logrank scores in the left daughter node \({\sum}_{X_{ji}\le c}{a}_i\). The null hypothesis is \({H}_0^j:P\left(Y{X}_j\le c\right)=P\left(Y{X}_j>c\right)\) for all points. Under the null hypothesis, the standardized logrank score test statistic is
Where \(\overline{a}\) and \({S}_a^2\) are the sample mean and sample variance of a_{i}, n_{l} = {i : X_{ji} ≤ c} denotes the number in the left daughter node, n = n_{l} + n_{r}. Logrank score splitting defines the measure of node separation by S(X_{j}, c). The maximum statistic value yields the best split, and is defined as the maximally selected rank statistics (MSR).
In RSF, a split is established by maximizing a splitting criterion over all possible splits, where the values of logrank score test statistics would be compared not only between cutpoints on the same variable but also between different variables, which induces bias. MSRRF deal with the problem with a twostep procedure. In the first step, for each potential variable, the split point with the maximally selected rank statistics is selected. Therefore, for each variable, P values are obtained for the best split point under the null hypothesis. The covariate with the smallest Pvalue is selected as splitting candidate. Only if the adjusted Pvalue for multiple testing of the candidate is smaller than the prespecified type I error, the split is made, otherwise no split is performed. In the second step, MSRRF procedure simplifies CIF procedure as the optimal split point is determined as a byproduct in step 1, which means new computation is needed no more in step 2. In this way, one procedure is used consistently in both steps of MSRRF.
MSRRF model is implemented in the R package called ranger [30].
Simulation study
Simulation design
In this section, we conducted simulation study to evaluate the performance of the three survival forests described in the previous section, in terms of prediction and variable selection.
The number of Monte Carlo simulation replications was set to 1000. All forests were run with 200 trees, in which the number of candidate covariates m for splitting was set to square root of the number of covariates M. The significance level of all hypothesis tests in this study was set to 0.05. To avoid the problems of overfitting that arises from using the same dataset to train and test model, in each simulation we randomly selected 80% subjects as training set and the other 20% as test set.
Survival time T was generated by inverting survival function via exponential distribution.
Where U followed the uniform distribution U(0, 1). Censoring times were generated from exponential distributions with different parameters to get different censoring rates.
The models that generated datasets are listed in Table 1, where the form is described as β^{T}X_{i}. For each simulated dataset, only two covariates were set to be associated with survival outcome, whereas the others performed as noise covariates. We specified four types of models:

A.
Multiple categorical covariates are included, and no interaction term exists.

B.
Multiple categorical covariates are included, and one firstorder interaction term exists.

C.
Only continuous covariates generated from multivariate normal distribution are included, and the correlation degree among covariates changes.

D.
Only independent and identical distributed covariates are included, and the dimension of covariates changes.
Model A was established in a linear form with ten covariates, including four continuous covariates x_{1i} − x_{4i} (two covariates were generated from uniform distribution x_{1i} − x_{2i}~U(0, 1) and the others were generated from standard normal distribution x_{3i} − x_{4i}~Ν(0, 1)) and six categorical covariates x_{5i} − x_{10i} (the categorical covariates were generated from discrete uniform distributions with different categories, including two covariates with 2 categories x_{5i} − x_{6i}~DiscreteU(1, 2), two covariates with 4 categories x_{7i} − x_{8i}~DiscreteU(1, 4) and two covariates with 8 categories x_{9i} − x_{10i}~DiscreteU(1, 8)). Only a continuous covariate x_{1i} and an unorderedcategorical covariate were set to be associated with the outcome, including (A1) covariate x_{5i} with 2 categories; (A2) covariate x_{7i} with 4 categories; (A3) covariate x_{9i} with 8 categories. For valid comparison, we controlled the categories in the indicative function Ι() so that 50% subjects in each model would have a value of 1. Model A was simulated at different censoring rates of 0, 25, 50, 75% and different sample sizes of 100, 200, 400, 800 (training set).
Model B had the same covariate framework as model A. Model B was established in a firstorder interaction form with a continuous covariate x_{1i} and an unorderedcategorical covariate associated with the outcome, including (B1) covariate x_{5i} with 2 categories; (B2) covariate x_{7i} with 4 categories; (B3) covariate x_{9i} with 8 categories. Model B was simulated at different censoring rates of 0, 25, 50, 75% and different sample sizes of 100, 200, 400, 800 (training set).
Model C was established in a linear form with two continuous covariates x_{1i} and x_{2i} associated with the outcome. In this model all ten variables followed multivariate normal distribution MVΝ(0, Σ), where Σ is a squared matrix with all diagonal elements equal to 1 and all offdiagonal elements equal to ρ. We changed the parameter ρ to get different correlations between the covariates. Model C was simulated at different censoring rates of 0, 25, 50, 75%, different sample sizes of 40, 100, 200, 400, 800 (training set) and different correlation parameter ρ of 0, 0.2, 0.4, 0.6, 0.8.
Model D was established in a linear form with two covariates x_{1i} and x_{2i}. It was used to study the performance of the methods under different dimensions of covariates, including (D1) continuous covariates all generated from the standard normal distribution; (D2) binary covariates all generated from discrete uniform distribution. The sample size N was set to 100 (training set); the censoring rate was set to 0, 25, 50, 75%. The ratio M/N, which means the ratio of the number of covariates M to the sample size N, was set to 0.2, 0.5, 1, 2, 5.
Model evaluation
To evaluate the performance of variable selection, we ranked the VIM of each forest in each simulation and obtained the ranks of the two correct variables. Finally we combined all simulations to calculate the frequency of the correct variables ranking in the top by VIM.
We used prediction error based on Brier score and cindex (cindex only exhibited in the supplement) to measure the prediction accuracy of all the three models. Brier score was originally applicable to multicategory forecasts, defined as the mean squared difference between the predicted probabilities and the actual observations [31].
Where N is sample size and R is the number of categories, predict_{ij} is the predicted probability for individual i assigned to the possible category j, and observe_{ij} is the actual observation for individual i at category j (1 if it is the actual observation and 0 otherwise).
The brier score BS(t) for survival data is defined as a function of time
Where \(\hat{G}\) is the KaplanMeier estimate of the conditional survival function of the censoring time. Brier score value has a range of 0 and 1. Good predictions at time t denote small values. The integrated brier score (IBS) introduced by Graf is [32].
The smaller IBS value, the greater the prediction. Note that IBS has gradually become a standard evaluation measure for survival prediction methods and is commonly used in survival forests prediction [33].
VIM was computed just from the training set, whereas IBS and cindex were estimated in the test set. IBS and cindex are implemented in R package pec [34].
Simulation result
Variable selection
Figure 1 displays the ratio of identifying both the correct variables of models AD.
Models A and B are presented as a function of different censoring rates at a fixed sample size of N = 200. In subplots A1, A2, A3, RSF have the lowest ratio of correct variable selection. CIF and MSRRF vary slightly in A1 and A2, as CIF are a little bit better in A1 whereas conversely in A2. In A3, MSRRF absolutely take over the lead. In subplots B1, B2, CIF perform best, while the others present equivalent performances. MSRRF exhibit the best performance closely followed by CIF in B3 while RSF remain the poorest performance. More results are exhibited in Fig. S1 and S2. It can be seen that three methods all perform better when sample size increases, especially reach a nearly complete selection at a sample size of 800. RSF perform relatively badly in all situations. As models A and B share the same covariate framework, the results show that RSF may have a relatively weak ability in this kind of data, no matter with linear sets or interaction sets, which directs variable selection bias.
Dataset C was set in a linear form with all ten variables generated form the multivariate normal distribution MVΝ(0, Σ), and we use three subplots to describe it under different conditions. The subplot C(ρ) plots the results as a function of the correlation parameter ρ between the covariates at N = 100 and 25% censoring. It can be seen that the selection rate varies slightly when ρ < 0.6. The selection rate at ρ = 0.8 is lower than ρ = 0.6. C(N) plots the results of various sample sizes N at a fixed correlation parameter ρ=0 and 25% censoring, which means the covariates are independent. C(N) shows when the sample size N is smaller than 40, RSF and CIF both exhibit poor results with less than 20% selection rate. When N = 800, all three methods reach nearly complete variable selection. C (censoring) studies different censoring rates at N = 100 and ρ=0. It shows when the censoring rate is 75%, all three methods perform low selection rate less than 20%, but MSRRF have absolutely higher selection rate under other censoring rates. In three subplots, it can be seen that the order of performance is MSRRF, RSF, CIF in turn for most cases. More results are shown in Fig. S3, which verify the results above. The variable selection frequency doesn’t fluctuate too much for small correlations. CIF don’t perform well under this type of covariates.
The subplots D1, D2 plot the results as a function of number of covariates M at N = 100 and 25% censoring. In D1 with continuous covariates, MSRRF offer obvious advantages across different dimensions of covariates. RSF are slightly better than CIF when M/N is no more than 1, which means sample size N is no less than the number of covariates M. When M/N > 1, both RSF and CIF perform badly, as the selection rate is nearly 0. In D2 with binary covariates, both MSRRF and RSF perform much better than CIF when M/N increases. More results are shown in Fig. S4. In D1 MSRRF show absolute advantages over the others. CIF are obviously weak, even sustain a selection rate of nearly 0 at a censoring rate of 75% no matter how M/N changes. MSRRF closely follow RSF, and both methods have a selection rate of over 75% even when M/N = 5 in D2, while CIF perform conversely poor when M/N increases. As model D is aimed to study different numbers of covariates with continuous variables or categorical variables, the results show that CIF may not identify the correct covariates accurately in data with high dimensional covariates.
Prediction performance
Figure 2 displays the mean value of IBS of models AD, with the same parameter settings as Fig. 1.
Models A and B were investigated as a function of different censoring rates at a fixed sample size of N = 200. In subplots A1A3, all three curves almost coincide. In subplots B1B3, MSRRF perform better under 75% censoring, whereas three methods remain overlapped when censoring rate less than 50%. More results in Fig. S5 and S6 prove the findings above. The results of cindex in Fig. S9 and S10 also indicate that there are only slight differences within 0.02 between the curves at the same settings, so it’s hard to conclude which perform best.
The subplot C(ρ) was fixed at N = 100 and 25% censoring, and IBS decreases as ρ increases. RSF perform slightly better, followed by MSRRF and lastly CIF. C(N) was fixed at ρ=0 and 25% censoring. It shows MSRRF performs best when N = 40, and RSF take over the lead when N > 40. C (censoring) was fixed at N = 100 and ρ=0, in which RSF maintain the best prediction. Overall three curves only have small IBS gap and Fig. S7 proves it. The results of cindex in Fig. S11 indicate that MSRRF are superior. RSF perform poor as CIF when N = 40, whereas RSF perform just a little bit lower than MSRRF when N > 40. Overall, CIF remain the poorest performance.
The subplots D1, D2 plot the results as a function of number of covariates M at N = 100 and 25% censoring. IBS increases as the ratio M/N increases. In D1 with continuous covariates, both MSRRF and RSF have lower IBS than CIF. In D2 with binary covariates, RSF offer obvious advantages across different M. Same findings can be observed in Fig. S8 with more results. The results of cindex in Fig. S12 indicate that MSRRF are superior in D, followed by RSF and lastly CIF. In D2 with binary covariates, RSF perform just a little bit lower than MSRRF. Overall, CIF still remain the poorest performance.
Application study
To demonstrate the efficiency and the predictive performance of the three survival forest models, we analyzed two real datasets with MSRRF, RSF and CIF. For forest construction, 200 survival trees were grown for each survival forest. In each simulation, we randomly selected 80% subjects as training set and the other 20% as test set, and this was repeated 100 times. For each repetition, IBS of test set were recorded and shown as boxplots. For easy explanation, Cox model was also conducted with the same analysis as a benchmark model.
The lung dataset recorded survival in patients with advanced lung cancer from the North Central Cancer Treatment Group (NCCTG) [35]. Subjects with missing values were excluded, so 167 subjects with 8 covariates were retained for analysis in our study. The median survival time is 268(range: 5 ~ 1022) days. A total of 120 patients died, with a low censoring rate of 28.1%. Summary characteristics can be found in Table 2. The dataset has 5 continuous covariates and 3 categorical covariates, including one with 2 categories, one with 4 categories and one with 17 categories. The dataset is freely available in the R package survival [36].
The hnscc dataset is a high dimensional breast cancer gene expression data with 565 subjects and 99 continuous covariates. The median survival time is 1671 (range: 2–6417) days. A total of 253 patients died, with a censoring rate of 55.2%. The dataset is freely available in the R package SurvHiDim [37]. Survival curves generated from lung dataset and hnscc dataset are shown in Fig. 3.
Besides the overall survival, researchers may also have interest in survival of specific time. In this way, despite the overall survival cohort of each dataset, we also present the 1year survival prediction of lung dataset and the 4year survival prediction of hnscc dataset. In Figs. 4 and 5, we find that all three forests perform better than the default benchmark Cox model. For lung dataset, all three forests seem to be comparable in predicting 1year survival while CIF have the lowest median value. MSRRF show the relatively low IBS range in overall survival prediction. What’s more, MSRRF seem to be the most stable method here because of the smallest range and interquartile range. For hnscc dataset, MSRRF show the smallest range and interquartile range in both fouryear survival prediction and overall survival prediction whereas CIF show the largest conversely.
Figure 6 presents the variable importance result of lung dataset. CIF and MSRRF have similar results in identifying the factors affecting the survival outcome, as ph.ecog, wt.loss, ph.karno, meal.cal rank 1st, 4th, 5th, 8th respectively in both forests. Sex, pat.karno rank 2nd3rd and inst, age rank 6th–7th in both forests with slight difference in order. However, despite the difference in RSF, ph.ecog, sex, pat.karno are the top three predictors among all methods, and meal.cal tends to have the lowest association with the outcome.
For the variable selection performance of hnscc dataset, unlike the custom establishment of correct variables in the simulation part, we have to use other variable selection method to learn the variables as a reference. Here we used backward stepwise selection based on AIC criterion as a reference and 38 covariates were selected. Ranks of VIM of the 38 variables were calculated among all the 99 variables. Median ranks of VIM and frequency of the selected variables’ VIM ranking top 38 of all repetitions were listed in Table 3. It can be seen that three methods differ in the ranks. CIF have the largest range and interquartile range, which indicate a relatively dispersion in the result. RSF and MSRRF have a relatively close and robust performance compared to CIF.
Discussion and conclusion
In this paper we used simulation study and real data study to compare prediction performances and variable selection performances between three survival forests mentioned above, including RSF, CIF and MSRRF. The prediction performance was evaluated through the prediction error IBS based on brier score with cindex as supplement. The smaller IBS value, the greater the prediction. The variable selection performance was evaluated by calculating the frequency of the correct variables ranking in the top by VIM.
The variable selection performance in simulation study shows that CIF and MSRRF both outperform RSF when there are multiple categorical variables in the datasets, where CIF show advantages in dealing with interaction term. When there are only continuous variables in the datasets, MSRRF perform better. When there are only binary variables in the data, RSF and MSRRF are superior than CIF. The results also show that three forests methods are not sensitive to the correlation between covariates due to the fact that correlation degree of the variables has little effect on the selection frequency. When the variable dimension increases, MSRRF and RSF seem to be more robust than CIF.
However, the IBS results and cindex results in predictive performance show that three methods are comparable majorly, only small variations can be observed under some situations. When there are only continuous variables or binary variables in the datasets, MSRRF and RSF seem to perform better than CIF. The results in application study are similar to those from simulation study. All three forest methods outperform the benchmark Cox model based on IBS result, but there are only tiny differences among the three methods. MSRRF seem to be more stable based on smaller range and interquartile range.
What’s more, it can be seen that higher correct variable selection frequency does not match better IBS or cindex value exactly in simulation study, which indicates prediction performance and variable selection performance are worth taking into consideration respectively, and that’s the objective in this paper.
There are several limitations in our study. First, high dimensional datasets have been considered only in model D in our research, which studied only continuous or binary variables. We have to admit that we lack deep investigations in high or ultrahigh dimensional datasets in this paper because we think it’s a wide field deserving deep investigations and we will make independent research in the future. Next, our paper studied both variable selection performance and prediction performance respectively. The prediction performance of simulation and application is easy to exhibit, which has been done in previous comparative studies. However, the variable selection performance of application is hard to evaluate because the correct variables associated to the outcome are unknown, whereas they can be set in simulation. We can only learn those variables from other variable selection methods for real datasets such as stepwise selection, LASSO et al. to serve as reference. Nevertheless, no method could be regarded as a “gold standard” reference. In this paper we just conducted the backward stepwise selection and exhibited the distribution of the ranks of VIM.
The main finding of this study is that RSF, CIF, MSRRF all show advantages based on different type of covariates. Hence it’s important for researchers to choose an appropriate forest model according to the research aim (variable selection or better prediction) and the nature of covariates. As it is shown in our study, MSRRF exhibit a relatively good and stable performance in most situations. Years ago the proposers conducted studies on computational time and proved the realization faster, which is also observed in our study. In this way, MSRRF are worth generalization and we hope the method could raise more attention in biomedical field.
Availability of data and materials
The authors confirm that all data underlying the findings are fully available without restriction. Dataset lung analysed during the current study is publically available from https://ascopubs.org/doi/10.1200/JCO.1994.12.3.601. Dataset hnscc analysed during the current study is publically available from https://cran.rproject.org/package=SurvHiDim.
Abbreviations
 RSF:

random survival forests
 CIF:

conditional inference forests
 MSRRF:

random forests with maximally selected rank statistics
 IBS:

integrated Brier score
 VIM:

variable importance measure
 Cox model:

Coxproportional hazards regression model
 RF:

random forests
 OOB data:

outofbag data
 CHF:

cumulate hazard function
 SF:

survival function
 CIT:

conditional inference tree
 MSR:

maximally selected rank statistics
 NCCTG:

North Central Cancer Treatment Group
References
 1.
Klein JP, Moeschberger ML. Survival analysis: techniques for censored and truncated data. New York: Springer; 2003. https://0doiorg.brum.beds.ac.uk/10.1007/b97377.
 2.
Cox DR. Regeression Models and LifeTables. J R Stat Soc B. 1972;34(2):187–202. https://0doiorg.brum.beds.ac.uk/10.1111/j.25176161.1972.tb00899.x.
 3.
Breslow N, Cox D, Oakes DO. Analysis Of Survival Data. Biometrics. 1985;41:593. https://0doiorg.brum.beds.ac.uk/10.2307/2530888.
 4.
Xue X, Xie X, Gunter M, Rohan TE, WassertheilSmoller S, Ho GY, et al. Testing the proportional hazards assumption in casecohort analysis. BMC Med Res Methodol. 2013;13:88. https://0doiorg.brum.beds.ac.uk/10.1186/147122881388.
 5.
Nasejje JB, Mwambi H. Application of random survival forests in understanding the determinants of underfive child mortality in Uganda in the presence of covariates that satisfy the proportional and nonproportional hazards assumption. BMC Res Notes. 2017;10(1):e. https://0doiorg.brum.beds.ac.uk/10.1186/s1310401727756.
 6.
Rauch G, Brannath W, Brückner M, Kieser M. The Average Hazard Ratio  A Good Effect Measure for Timetoevent Endpoints when the Proportional Hazard Assumption is Violated? Methods Inf Med. 2018;57(3):89–100. https://0doiorg.brum.beds.ac.uk/10.3414/me17010058.
 7.
Therneau TM, Grambsch PM. Modeling survival data: extending the Cox model. New York: Springer; 2000. https://0doiorg.brum.beds.ac.uk/10.1007/9781475732948.
 8.
Moolgavkar SH, Chang ET, Watson HN, Lau EC. An Assessment of the Cox Proportional Hazards Regression Model for Epidemiologic Studies. Risk Anal. 2018;38(4):777–94. https://0doiorg.brum.beds.ac.uk/10.1111/risa.12865.
 9.
Breiman L. Random Forests. Mach Learn. 2001;45(1):5–32. https://0doiorg.brum.beds.ac.uk/10.1023/A:1010933404324.
 10.
Breiman L. Bagging predictors. Mach Learn. 1996;24(2):123–40. https://0doiorg.brum.beds.ac.uk/10.1007/BF00058655.
 11.
Ho T. The Random Subspace Method for Constructing Decision Forests. IEEE T Pattern Anal. 1998;20:832–44. https://0doiorg.brum.beds.ac.uk/10.1109/34.709601.
 12.
Breiman L, Friedman J, Olshen RA, Stone CJ. Classification and regression trees (CART). Belmont: CRC press; 1984.
 13.
Ishwaran H, Kogalur UB, Blackstone EH, Lauer MS. Random survival forests. Ann Appl Stat. 2008;2(3):841–60. https://0doiorg.brum.beds.ac.uk/10.1214/08AOAS169.
 14.
Ishwaran H, Kogalur U. Random survival forests for R. R news. 2007;7:25–31.
 15.
van Wieringen WN, Kun D, Hampel R, Boulesteix AL. Survival prediction using gene expression data: A review and comparison. Comput Stat Data An. 2009;53(5):1590–603. https://0doiorg.brum.beds.ac.uk/10.1016/j.csda.2008.05.021.
 16.
Ishwaran H, Kogalur UB. Consistency of Random Survival Forests. Stat Probab Lett. 2010;80(13–14):1056–64. https://0doiorg.brum.beds.ac.uk/10.1016/j.spl.2010.02.020.
 17.
Ishwaran H, Kogalur UB, Gorodeski EZ, Minn AJ, Lauer MS. HighDimensional Variable Selection for Survival Data. J Am Stat Assoc. 2010;105(489):205–17. https://0doiorg.brum.beds.ac.uk/10.1198/jasa.2009.tm08622.
 18.
Strobl C, Boulesteix AL, Zeileis A, Hothorn T. Bias in random forest variable importance measures: illustrations, sources and a solution. BMC Bioinformatics. 2007;8:25. https://0doiorg.brum.beds.ac.uk/10.1186/14712105825.
 19.
Hothorn T, Hornik K, Zeileis A. Unbiased recursive partitioning: A conditional inference framework. J Comput Graph Stat. 2006;15(3):651–74. https://0doiorg.brum.beds.ac.uk/10.1198/106186006x133933.
 20.
Das A, AbdelAty M, Pande A. Using conditional inference forests to identify the factors affecting crash severity on arterial corridors. J Safety Res. 2009;40(4):317–27. https://0doiorg.brum.beds.ac.uk/10.1016/j.jsr.2009.05.003.
 21.
Wright MN, Dankowski T, Ziegler A. Unbiased split variable selection for random survival forests using maximally selected rank statistics. Stat Med. 2017;36(8):1272–84. https://0doiorg.brum.beds.ac.uk/10.1002/sim.7212.
 22.
Wright MN, Ziegler A. ranger: A Fast Implementation of Random Forests for High Dimensional Data in C plus plus and R. J Stat Softw. 2017;77(1):1–17. https://0doiorg.brum.beds.ac.uk/10.18637/jss.v077.i01.
 23.
Nasejje JB, Mwambi H, Dheda K, Lesosky M. A ceomparison of the conditional inference survival forest model to random survival forests based on a simulation study as well as on two applications with timetoevent data. BMC Med Res Methodol. 2017;17(1):115. https://0doiorg.brum.beds.ac.uk/10.1186/s1287401703838.
 24.
Du M, Haag DG, Lynch JW, Mittinty MN. Comparison of the TreeBased Machine Learning Algorithms to Cox Regression in Predicting the Survival of Oral and Pharyngeal Cancers: Analyses Based on SEER Database. Cancers. 2020;12(10):2802. https://0doiorg.brum.beds.ac.uk/10.3390/cancers12102802.
 25.
Ishwaran H, Kogalur U. Fast unified random forests for survival, regression, and classification (RFSRC). R package version 2.9.1. 2019. URL: https://cran.rproject.org/package=randomForestSRC.html.
 26.
Hothorn T, Bühlmann P, Dudoit S, Molinaro A, van der Laan MJ. Survival ensembles. Biostatistics. 2006;7(3):355–73. https://0doiorg.brum.beds.ac.uk/10.1093/biostatistics/kxj011.
 27.
Strobl C, Boulesteix AL, Kneib T, Augustin T, Zeileis A. Conditional variable importance for random forests. BMC bioinformatics. 2008;9:307. https://0doiorg.brum.beds.ac.uk/10.1186/147121059307.
 28.
Hothorn T, Hornik K, Strobl C, Zeileis A. Party: a Laboratory for Recursive Partytioning. R package version 1.37. 2021. URL: https://cran.rproject.org/package=party.html.
 29.
Hothorn T, Lausen B. On the exact distribution of maximally selected rank statistics. Comput Stat Data An. 2003;43(2):121–37. https://0doiorg.brum.beds.ac.uk/10.1016/S01679473(02)002256.
 30.
Wright MN, Wager S, Probst P. Ranger: a fast implementation of random forests. R package version 0.12.1. 2020. URL: https://cran.rproject.org/package=ranger.html.
 31.
Brier GW. Verification of Forecasts Expressed in Terms of Probability. Mon Weather Rev. 1950;78(1):1–3. https://0doiorg.brum.beds.ac.uk/10.1175/15200493(1950)078<0001:VOFEIT>2.0.CO;2.
 32.
Graf E, Schmoor C, Sauerbrei W, Schumacher M. Assessment and comparison of prognostic classification schemes for survival data. Stat Med. 1999;18(17–18):2529–2545. https://0doiorg.brum.beds.ac.uk/10.1002/(SICI)10970258(19990915/30)18:17/18<2529::AIDSIM274>3.0.CO;25.
 33.
Mogensen UB, Ishwaran H, Gerds TA. Evaluating Random Forests for Survival Analysis Using Prediction Error Curves. J Stat Softw. 2012, 50(11):1–23. doi: https://0doiorg.brum.beds.ac.uk/10.18637/jss.v050.i11.
 34.
Gerds T. Pec: eprediction error curves for risk prediction models in survival analysis. R package version 2020.11.17. 2020. URL: https://cran.rproject.org/package=pec.html.
 35.
Loprinzi CL, Laurie JA, Wieand HS, Krook JE, Novotny PJ, Kugler JW, et al. Prospective evaluation of prognostic variables from patientcompleted questionnaires. North Central Cancer Treatment Group. J Clin Oncol. 1994;12(3):601–7. https://0doiorg.brum.beds.ac.uk/10.1200/jco.1994.12.3.601.
 36.
Therneau T. A package for survival analysis in R. R package version 2.38. 2015. URL: https://cran.rproject.org/package=survival.
 37.
Bhattacharjee A, Pawar A. SurvHiDim: high dimensional survival data analysis. R package version 0.1.0. 2021. URL: https://cran.rproject.org/package=SurvHiDim.
Acknowledgements
We acknowledge the financial support from Guangdong Provincial Key Laboratory of Construction and Detection in Tissue Engineering.
Funding
We thank Guangdong Provincial Key Laboratory of Construction and Detection in Tissue Engineering for the financial support in our work.
Author information
Affiliations
Contributions
Conceived by Liu. Analyzed the data: Liu. Wrote the first draft of the manuscript: Liu. Contributed to the writing of the manuscript: Liu, Zhou, Wei and An. Agree with the manuscript’s results and conclusions: Liu, Zhou, Wei and An. All authors have read and reviewed the manuscript. The author(s) read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Liu, Y., Zhou, S., Wei, H. et al. A comparative study of forest methods for timetoevent data: variable selection and predictive performance. BMC Med Res Methodol 21, 193 (2021). https://0doiorg.brum.beds.ac.uk/10.1186/s12874021013868
Received:
Accepted:
Published:
DOI: https://0doiorg.brum.beds.ac.uk/10.1186/s12874021013868
Keywords
 Survival analysis
 Random survival Forest
 Conditional inference Forest
 Maximally selected rank statistics
 Machine learning
 Variable selection
 Brier score