SUMMARY
Composite endpoints are frequently used in clinical trials to enhance the event rate and improve the statistical power. In the presence of a terminal event, the while-alive cumulative frequency measure offers a useful alternative to define composite survival outcomes, by relating the average event rate to the survival time. Although non-parametric methods have been proposed for two-sample comparisons, limited attention has been given to regression methods that directly address time-varying association effects in while-alive measures. We address this gap by developing a regression framework for exposure-weighted while-alive measures for composite survival outcomes that include a terminal component event. Our regression approach uses splines to model time-varying association between covariates and a generalized while-alive loss rate of all component events, and can be applied to both independent and clustered data. We derive the asymptotic properties of the regression estimator under both independent data and cluster-correlated data settings, and study the operating characteristics of our methods through simulations. Finally, we apply our regression method to analyze data two randomized clinical trials. The proposed methods are implemented in the WAreg R package.
Keywords: cluster randomized trials, composite outcome, inverse probability of censoring weighting, randomized clinical trials, recurrent event, splines
1. INTRODUCTION
Composite endpoints are common in phase III clinical trials and consist of two or more component endpoints. For example, in cardiovascular disease research, a composite endpoint might combine time to death, myocardial infarction, stroke and hospitalization. The use of composite endpoints increases the efficiency of clinical trials by increasing the overall event rate, thereby improving the power to detect treatment effect (Freemantle et al. 2003). Regulatory guidelines have underscored the importance of carefully constructing, analyzing, and reporting composite endpoints. For instance, the ICH-E9 guideline, Statistical Principles for Clinical Trials (European Medicines Agency 2020), states: “If a single primary variable cannot be selected from multiple measurements associated with the primary objective, another useful strategy is to integrate or combine the multiple measurements into a single or composite variable.” The U.S. Food and Drug Administration guideline, Multiple Endpoints in Clinical Trials (Food and Drug Administration 2017), mentions that “composite endpoints are often assessed as the time to first occurrence of any one of the components” while also noting that “it may also be possible to analyze total endpoint events.”
Traditional analyses of composite endpoints typically rely on time-to-first-event models, which implicitly assign equal clinical weight to fatal and non-fatal outcomes. When both recurrent and terminal events are present, various regression approaches have been proposed that differ in the primary target parameters and how death is handled. When estimating the treatment effect in a regression model, the strategies for handling death can be mapped to methods for handling intercurrent events under the ICH E9 estimands framework (European Medicines Agency 2020). A summary of representative regression models and their strategies for handling death is provided in Table S1. In particular, the while-alive approach has recently been highlighted in the ICH-E9(R1) Addendum as a viable strategy to handle death as an intercurrent event. Under this framework, the occurrence of events is evaluated relative to the duration of survival. By normalizing the event burden with respect to survival, while-alive estimands provide interpretable measures of the average event rate among patients while they are alive. Two particular forms of the estimand have been defined (Schmidli et al. 2023): the patient-weighted while-alive estimand, which is the expectation of the event-to-survival ratio across individuals (Ragni et al. 2024), and the exposure-weighted while-alive estimand, which is the ratio of the expected number of events to the restricted mean survival time (Mao 2023; Wei et al. 2023).
There are several previous efforts in studying while-alive measures. Wei et al. (2023) established theoretical properties of exposure-weighted while-alive estimators under a gamma frailty model, Mao (2023) developed a nonparametric estimator for the exposure-weighted while-alive estimand, and Ragni et al. (2024) derived the efficient influence function and constructed efficient non-parametric estimators for the patient-weighted while-alive estimand. While these contributions are useful for estimating treatment effects, they do not address association analysis under a regression framework. For regression analysis of while-alive measures, it is often necessary to address time-varying association effects. To accommodate time-varying effects, several strategies have been previously employed in survival analysis with a single endpoint. For example, kernel-based methods have been developed for Cox models (Cai and Sun 2003) to estimate time-varying hazard ratios. Spline-based methods approximate time-varying coefficients with flexible basis functions, and have been applied in the context of mean residual life regression (Sun et al. 2012) and restricted mean survival time regression (Zhong and Schaubel 2022). Finally, landmark models (Van Houwelingen and Putter 2008) provide a complementary approach by fitting survival models at prespecified landmark times, allowing dynamic prediction and assessment of time-varying effects in a practical fashion.
In this paper, we propose a new regression framework that incorporates time-varying coefficients into the while-alive measure for composite survival endpoints. We focus on the exposure-weighted while-alive estimand, operationalized through the generalized while-alive loss rate. We model the association between covariates and while-alive loss rate with spline functions, allowing effects to vary smoothly over follow-up time. We first address independent data, and then discuss cluster-correlated data under the working independence assumption. We establish the asymptotic properties of the proposed regression estimators and investigate their finite-sample performance using simulations. Finally, we illustrate the use of our methods by analyzing two clinical trials. To facilitate implementation, an R package WAreg (https://github.com/fancy575/WAreg) has been developed, along with a short tutorial in Web Appendix S15.
2. MOTIVATING DATA EXAMPLES
The first motivating example is the Heart Failure: A Controlled Trial Investigating Outcomes of Exercise Training (HF-ACTION), a multicenter individually randomized trial. This study enrolled 2,331 patients with a median follow-up of 30 months to evaluate the effectiveness of exercise training in heart failure patients. Figure 1a shows the distribution of recurrent hospitalizations and mortality events for each subject, stratified by treatment group. The primary endpoint was a composite of all-cause mortality and all-cause hospitalization. Initial analysis using a Cox proportional hazards model for the time to the first event, adjusted for etiology, found statistically insignificant reductions in the exercise training group compared to usual care (hazard ratio = 0.92, with 95% confidence interval = (0.83, 1.03); p-value = 0.14) (O’Connor et al. 2009). However, this approach only considered the first occurrence of mortality or hospitalization, ignoring subsequent events and treating hospitalizations and deaths as equally important. To address these limitations, more advanced methods were applied to the HF-ACTION data. For example, Mao and Lin (2016) considered a semiparametric regression model under the proportional mean framework to analyze weighted endpoints, but did not directly address the issue of differential follow-up time across patients. In their analysis, there was no statistically significant reduction in the mean frequencies of the weighted composite events at the 0.05 level, regardless of weights assigned to hospitalization and death. However, the p-values are smaller compared to that under the time to first event analysis.
Fig. 1.

a) Distribution of hospitalization and fatal events per subject by intervention group in the HF-ACTION trial. b) Distribution of fall-related injuries and fatal events per subject by intervention group in the STRIDE trial. Each horizontal line shows one participant’s follow-up from randomization to the observed end of follow-up (death or censoring); circular markers indicate recurrent hospitalizations/injuries and triangular markers indicate deaths. The staircase-like right edge occurs because many participants share common administrative or scheduled end times, yielding a visual alignment. Figures were generated using the reReg R package (Chiou et al. 2023).
A second example is the Strategies to Reduce Injuries and Develop Confidence in Elders (STRIDE) trial, a pragmatic cluster randomized study evaluating the effectiveness of a multifactorial intervention for preventing fall-related injuries. A total of 86 primary care practices were randomly assigned to either the intervention or enhanced usual care (control) group, with 43 practices in each arm. There were 2,802 participants in the intervention group and 2,649 in the control group, with a maximum follow-up of 44 months. In the original analysis, a multistate survival model accounting for competing risks of death and clustering was used to evaluate time to first fall-related injury. The estimated hazard ratio was 0.90 (95% confidence Interval: (0.83, 0.99); p-value = 0.004). Figure 1b shows the distribution of recurrent fall injuries and mortality events for each subject, stratified by intervention group. This study requires consideration of both recurrent fall injuries and fatal events (Bhasin et al. 2020) in clustered settings. In both examples, there is interest in exploring the impact of treatment and other risk factors on the composite of recurrent and terminal events through a single regression model, to provide useful summary measures. This motivates the while-alive regression methods, which are specifically designed to provide a framework for regression-based analysis of composite survival endpoints in both independent and cluster-correlated data settings.
3. METHODS
3.1. While-alive measure
Let denote the time to the terminal event (death), and define , where is the indicator function. With recurrent events, let , denote the counting processes for distinct types of recurrent events. Since death is a terminal event, the counting processes for recurrent events are constrained by the survival time , and are given by , where denotes the recurrence time of the event type, and . This ensures that no recurrent events are observed after the terminal event. The complete event history up to time is , which includes the times and types of all recurrent events up to , as well as whether the terminal event has occurred.
To characterize the cumulative events over time, we define , as the instantaneous loss rate at time . This definition satisfies: (C1) for , ensuring that no loss is incurred after death; (C2) depends only on the event history up to time . Condition (C1) aligns with the nature of recurrent event analysis. Condition (C2) is natural and exhibits the dependence of the loss rate on the observed history up to instead of the future. We follow Mao (2023) to define the generalized while-alive loss rate over the interval as:
| (3.1) |
where , and . In this definition, is the weight assigned to the type of recurrent event, is the weight assigned to the terminal event, and is the restricted mean survival time (RMST). In definition (3.1), the numerator quantifies the expected cumulative weighted events up to time . The denominator, , provides a time-at-risk adjustment by capturing the expected duration of survival over . This definition accounts for both recurrent and terminal events as component endpoints, and adjusts the loss rate by the duration of survival. Particularly, (3.1) corresponds to the exposure-weighted while-alive loss rate (Wei et al. 2023), which quantifies the average burden per unit time alive across the cohort. In this formulation, individuals who survive longer contribute more exposure time and therefore receive greater weight in the overall average. This is to be differentiated from the patient-weighted while-alive loss rate (Ragni et al. 2024), defined as , which averages each patient’s event-to-survival ratio and thus reflects the typical patient’s while-alive loss rate. The two quantities are linked by
indicating that equals the survival-time weighted average of the patient-level while-alive measure. Finally, in the special case where for all and , (3.1) becomes the average hazard of the terminal event in Uno and Horiguchi (2023) and Uno et al. (2024).
3.2. While-alive generalized linear model
We denote as a -dimensional vector of bounded covariates for individual . By convention, the first element may be set to 1 to include an intercept. The while-alive loss rate at truncation time , conditional on , is denoted as , which we model as
| (3.2) |
Throughout, we use the term truncation time to denote the evaluation horizon at which the while-alive loss rate is defined and modeled. Here denotes the filtration generated by the event history up to time (recurrent counts and aliveness/terminal event). In (3.2), is a -dimensional vector of time-varying parameters, and is a specified, increasing, and differentiable link function. The choice of determines the interpretation of the regression coefficients. For example, with a binary treatment variable and a log-link function , the exponentiated coefficient represents the ratio of while-alive loss rates between treatment groups. The vector indexes covariate effects on the exposure-weighted while-alive loss rate at time . Of note, a time-varying does not by itself imply that the underlying treatment effect on the hazard of death or recurrent events is time-varying. Because the while-alive rate conditions on being alive, both its numerator and denominator evolve with the survivor cohort, so that even constant hazard-scale effects can translate into a time-varying contrast on the while-alive scale. We further illustrate this point in Web Appendix SA.2. Furthermore, we view as a local or instantaneous covariate effect, in the sense that it captures the contribution of the covariate to the while-alive loss rate at time . Because clinical decision making is rarely based on an infinitesimal moment, one can use the window-averaged summaries of the local effect curve. For example, for an interval , we define
as the time-averaged effect of the covariate, with weight reflecting the effective information at time (for example, the probability of being alive and uncensored at ; in the absence of such adjustment we set ). Under the log link, is the weighted geometric mean of the instantaneous rate ratios over . In practice, the time windows can be selected based on the scientific question or clinical judgment (eg 0–3 mo immediately after randomization, 3–6 mo during early recovery).
We let denote the censoring time due to either study termination or loss to follow-up. We assume covariate-dependent censoring such that and positivity such that amost surely. Define as the observed time and as the indicator for whether the terminal event occurred. We define the observed data for subject as , where denotes the observable portion of the event history up to time . We further assume that is a vector of continuous functions on , parameterized via a finite-dimensional basis in . Similar to Zhong and Schaubel (2022); Chen et al. (2023), we express the time-varying coefficients using
where denotes the basis functions (e.g., piecewise-constant segments or spline functions with a chosen knot set) for covariate . The stacked design vector can then be written as , and the parameter vector as . For convenience, we adopt a common basis across covariates, ie and with the same knot locations, in which case the representation simplifies to .
To estimate , we create batches of data at time points , where the component are sorted in ascending order within the interval , and denotes the maximum follow-up time. The stacked estimating function is given by
| (3.3) |
where is the censoring survival function given covariates, and , , with . The weight in (3.3), is the inverse probability of remaining uncensored up to the relevant exposure time , conditional on covariates. It restores the unbiasedness of the observed-data estimating function relative to its full-data counterpart under covariate-dependent censoring. Operationally, the numerator partitions the sample into those who die before (contribute at their death time ) and those who live beyond (contribute at ); those censored before contribute zero, and the denominator reweights the contribution by the inverse probability of being uncensored at the truncated follow-up time . The locations of the knots defining the basis functions need not coincide with the stacking points defining the estimating equations. However, for simplicity and convenience, the stacking points may often be chosen to coincide with the knot locations.
Assuming that are independent and identically distributed, we can show that, as converges uniformly to a monotone limiting function . Let and denote the solutions to and , respectively. In Web Appendix SA.3, we prove that as , under correct specification of the while-alive regression model and . Finally, the censoring survival function can be estimated using familiar survival analysis tools, such as the Cox proportional hazards model:
and thus . Under completely independent censoring, a Kaplan-Meier estimator can be used to estimate without covariates.
Remark 3.1. If only the association effect at a specific time is of interest, the estimating equation (3.3) can be simplified by setting without stacking. That is, we can solve the time-specific coefficient from the unstacked estimating equation
This approach represents a localized, or “landmark” version of the while-alive regression model at the specified time horizon , instead of borrowing information across multiple landmarks via spline smoothing.
3.3. Asymptotic properties
We characterize the asymptotic properties of the estimator for the regression parameters with independent data under covariate-dependent censoring. The properties with completely independent censoring are provided in the Web Appendix SA.5 as a special case. We make the following regularity conditions:
and for .
The covariate is bounded for .
is absolute continuous for , and the cumulative hazard function for censoring is absolute continuous for
is positive definite for any , where is the derivative of the , and for vector .
-
The matrix
is positive definite for , where for , and is bounded away from zero, and is the baseline hazard for censoring time.
Theorem 3.2. Under the above regularity conditions, converge weakly to zero-mean Gaussian distribution with variance , where
where is the martingale for the censoring process.
The proof of Theorem 3.2 is provided in Web Appendix SA.4. In particular, the asymptotic variance matrix explicitly accounts for the variability in estimating the censoring survival function. Theorem 3.2 motivates a consistent sandwich variance estimator for , which can be used to construct 95% pointwise confidence interval for the regression coefficient, as well as prediction intervals for the while-alive rate at a given time point (Web Appendix SA.4). In particular, the while-alive regression model generalizes the average hazard (AH) regression proposed by Uno et al. (2024) from a single terminal event to composite endpoints, and from a time-fixed association analysis to time-varying association analysis. Theorem 3.2 also motivates a global test for the covariate effect based on the null hypothesis . The corresponding Wald statistic is , where is the estimator of , and denotes the estimated submatrix of the full asymptotic covariance matrix . Under the null hypothesis, follows a Chi-squared distribution with degrees of freedom. The asymptotic results under the completely independent censoring scenario with Kaplan-Meier censoring estimator are provided in Web Appendix SA.5.
Remark 3.3. Our regression framework extends the nonparametric estimator of Mao (2023), which focused only on estimating arm-specific exposure-weighted while-alive loss rate under arm-specific independent censoring. In the special case of a binary treatment , the while-alive regression model specified by in (2) is saturated and can be used to predict arm-specific while-alive loss rate; this is asymptotically equivalent to the nonparametric estimator of Mao (2023). Additional details are provided in Web Appendix SA.6.
4. EXTENSION TO CLUSTER-CORRELATED DATA
We next describe a marginal while-alive regression model as an extension to handle cluster-correlated data. Suppose there are independent clusters, where each cluster have individuals for . Denote as the type of recurrent event, as the fatal event, as the censoring time for individual in cluster . Then for individual in cluster , we denote . The covariates can include both cluster-level and individual-level covariates. The complete history of event for subject in cluster is denoted as , thus, we assume covariate-dependent censoring such that , where , and be the collection of the observed information within cluster . With clustered data, individuals within the cluster can be correlated. Let the observed data for cluster be denoted as , where , and denotes the observed event histories up to for cluster in cluster . We assume the cluster-level observations are identically independent distributed across clusters. The marginal while-alive regression for clustered data is defined as:
| (4.4) |
where the while-alive loss rate is defined analogously to (3.1) based on the individual event history up to . Similar to (3.3), we propose the following unbiased estimating equation under the working independence assumption to estimate as
In the above estimating equation, we can similarly estimate the censoring survival function via the marginal proportional hazard model (Chen et al. 2023), given by . We then denote as the estimator of . If censoring is considered completely independent of covariates , then the estimation of can simply proceed with the Kaplan-Meier estimator. We then establish the asymptotic results in Web Appendix SA.7. With clustered-correlated data, besides accounting for the variability introduced by estimating the censoring survival function, the “meat” of the sandwich variance is additionally constructed in two steps. First, we compute the individual contributions as in the independent-data setting. Then, these are aggregated at the cluster level by summing over . Since clusters are assumed to be independent, the variance is constructed based on these independent cluster-level sums rather than the individual-level scores, which is a major difference from the asymptotic results in Theorem 3.2. A consistent variance estimator is obtained by replacing with its estimator , and with its estimator (Web Appendix SA.7). The asymptotic results under the completely independent censoring scenario with Kaplan-Meier censoring estimator are provided in Web Appendix SA.8. Similar to the case with independent data, by setting for all and focusing on the parameter at a fixed time point , the marginal while-alive regression reduces to an average hazard regression for cluster-correlated data (Web Appendix SA.9).
5. PRACTICAL CONSIDERATIONS
In our weighted estimation equation, smoothing parameters, including the degree of the spline basis function , and the number and location of knots , need to be chosen to balance flexibility and overfitting. It may often be impractical to optimize all components jointly. To simplify the process, we consider combinations of and , where knots are placed at equally spaced quantiles of the observed time scale. The optimal pair is then selected using a data-driven criterion based on predictive performance tailored to while-alive loss rate estimation. To determine the optimal pair , we adopt the B-fold cross-validation by minimizing the prediction error within the held-out validation data.
With independent data, we divide the data into approximately equal-sized subsets, denoted . For each fold , we fit the while-alive regression model with knots and degree of , excluding the subset . Let denote the estimator obtained from this training data (excluding fold ). We then evaluate the prediction error using the held-out data . Repeating this procedure over all folds gives the overall prediction error , and the optimal pair is selected as the pair that minimizes . For while-alive regression, we define the fold-specific prediction error as
where is the estimated censoring survival probability, obtained by excluding .
With clustered data, we modify the cross-validation approach by partitioning the data at the cluster level. Specifically, we divide the clusters into non-overlapping subsets , each containing one or more clusters. For each fold , we fit the model using all clusters except those in , obtaining the estimator and compute the prediction error using only the data from the held-out clusters. The total prediction error is then , and the optimal pair is selected to minimize this sum. Generalizing the definition from the independent data case, the for clustered data is defined as
In practice, the integral over time in can be computed numerically. Taking the independent data as an example, we can define
We discretize the time interval into a fine grid of points , and approximate the integral using trapezoidal rule with .
6. SIMULATION STUDIES
We carry out simulations to examine the finite-sample performance of the proposed regression methods. Focusing on independent data, we follow the approach in Wei et al. (2023) and generate two types of recurrent events and a fatal event from a joint frailty model with individuals (Toenges et al. 2021). Each individual has two baseline covariates and , together with a multiplicative frailty ) shared across all event types. Conditional on and being at risk, the recurrent event for individual follows a nonhomogeneous Poisson distribution with intensity , where is the baseline intensity for event type . The fatal event has a hazard function , and is the baseline hazard function. We specify a Weibull baseline for type 1 recurrences, a three-interval piecewise exponential baseline for type 2 recurrences, and a Gompertz baseline for the terminal hazard. The while-alive estimand under this joint frailty model admits a closed-form expression (Wei et al. 2023), with full details provided in Web Appendix SA.2. Baseline and coefficient values for all scenarios are summarized in Table 1. Right censoring times are generated either from a covariate-dependent exponential distribution , with chosen to achieve approximately 25% or 50% censoring rate (for the fatal event), or a completely independent exponential distribution with tuned to achieve approximately 50% censoring rate. We consider two scenario sets. Scenario Set I corresponds to a higher recurrent event intensity, whereas Scenario Set II corresponds to a lower recurrent event intensity. Within each set, we examine two weight specifications, representing equal weighting and (1, 2, 2) with greater emphasis on death and severe recurrences. A complete specification of all configurations is provided in Table 1.
Table 1.
Simulation scenarios for the independent data case under the joint frailty model.a
| Scenario | Censoring | Rates | |||||
|---|---|---|---|---|---|---|---|
| I(a) | (0.45, 0.30) | (0.50, −0.80) | (0.30, 0.90) | (0.20, 1.00) | (1,1,1) | (1.780, 0.279, 0.514) | |
| I(b) | (0.45, 0.30) | (0.50, −0.80) | (0.30, 0.90) | (0.20, 1.00) | (1,1,1) | (1.680, 0.304, 0.492) | |
| I(c) | (0.45, 0.30) | (0.50, −0.80) | (0.30, 0.90) | (0.20, 1.00) | (1,2,2) | (1.780, 0.279, 0.514) | |
| I(d) | (0.45, 0.30) | (0.50, −0.80) | (0.30, 0.90) | (0.20, 1.00) | (1,2,2) | (1.680, 0.304, 0.492) | |
| II(a) | (0.10, 0.30) | (0.20, 0.50) | (0.80, 1.00) | (0.20, 1.00) | (1,1,1) | (0.599, 0.387, 0.188) | |
| II(b) | (0.10, 0.30) | (0.20, 0.50) | (0.80, 1.00) | (0.20, 1.00) | (1,2,2) | (0.599, 0.387, 0.188) | |
| IC(a) | (0.45, 0.30) | (0.50, −0.80) | (0.30, 0.90) | (0.20, 1.00) | (1,1,1) | (1.280, 0.385, 0.571) | |
| IC(b) | (0.45, 0.30) | (0.50, −0.80) | (0.30, 0.90) | (0.20, 1.00) | (1,2,2) | (1.280, 0.385, 0.571) |
Type 1 recurrences: Weibull baseline (scale = 0.50, shape = 1.25); Type 2 recurrences: piecewise exponential distribution baseline with cuts (0, 1, 3) and rates (0.40, 0.22, 0.10); Death: Gompertz baseline with parameters . Covariate effects are . Censoring follows or (independent). The Rates column reports realized event rates per person-time for type 1, type 2, and death.
We fit the while-alive regression model described in Section 3.2 using a step-function basis with equally spaced knots at {1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0}. That is, , and . We further let the stacking points coincide with the knot locations, and consider a log link in the regression model. The true association effects are evaluated directly from the joint frailty data-generating model using Monte Carlo approximation with a super population of size with censoring removed; see Web Appendix SA.10 for further details. We consider 1000 simulation replicates for each setting, and evaluate the following performance metrics at the knot locations: absolute bias (ABias), Monte Carlo standard deviation (MCSD), average estimated standard error (AESE), and 95% coverage probability (CP) of the confidence interval estimator.
Tables 2 and 3 summarize the simulation results under two censoring scenarios: covariate-dependent censoring (Scenarios I(b) and I(d), censoring rate = 50%) and completely independent censoring (Scenarios II(a) and II(b), censoring rate = 50%). For each selected time point, we report the Abias, MCSD, AESE and CP of 95% confidence intervals of the regression coefficient estimators. The results show that the proposed regression estimators are approximately unbiased across all time points and under both censoring settings. The mean standard error estimates obtained from the proposed sandwich variance estimator closely match the empirical Monte Carlo standard deviation throughout, leading to close to nominal coverage.
Table 2.
Simulation results under Scenario I(b) and I(d) with equally spaced knots and stacking time at (1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0) and covariate-dependent censoring (50% censoring rate).a
| Time | True | ABias | MCSD | AESE | CP | True | ABias | MCSD | AESE | CP | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1.0 | 0.904 | 0.001 | 0.043 | 0.042 | 0.951 | 1.341 | 0.001 | 0.043 | 0.043 | 0.955 | |
| −0.008 | 0.004 | 0.056 | 0.056 | 0.941 | 0.355 | 0.004 | 0.064 | 0.063 | 0.940 | ||
| 1.5 | 0.871 | 0.001 | 0.047 | 0.047 | 0.949 | 1.333 | 0.001 | 0.046 | 0.047 | 0.953 | |
| −0.146 | 0.004 | 0.055 | 0.055 | 0.938 | 0.195 | 0.004 | 0.066 | 0.066 | 0.937 | ||
| 2.0 | 0.839 | 0.002 | 0.052 | 0.053 | 0.952 | 1.312 | 0.001 | 0.053 | 0.054 | 0.963 | |
| −0.238 | 0.004 | 0.056 | 0.054 | 0.942 | 0.077 | 0.004 | 0.070 | 0.069 | 0.942 | ||
| 2.5 | 0.812 | 0.003 | 0.057 | 0.058 | 0.952 | 1.287 | 0.003 | 0.061 | 0.062 | 0.944 | |
| −0.304 | 0.004 | 0.056 | 0.054 | 0.940 | −0.013 | 0.005 | 0.072 | 0.070 | 0.945 | ||
| 3.0 | 0.789 | 0.003 | 0.062 | 0.064 | 0.953 | 1.261 | 0.004 | 0.067 | 0.069 | 0.951 | |
| −0.354 | 0.005 | 0.056 | 0.055 | 0.934 | −0.084 | 0.006 | 0.072 | 0.072 | 0.940 | ||
| 3.5 | 0.768 | 0.005 | 0.069 | 0.069 | 0.946 | 1.235 | 0.007 | 0.076 | 0.076 | 0.941 | |
| −0.392 | 0.006 | 0.057 | 0.055 | 0.929 | −0.140 | 0.007 | 0.074 | 0.073 | 0.933 | ||
| 4.0 | 0.751 | 0.008 | 0.074 | 0.074 | 0.940 | 1.211 | 0.010 | 0.082 | 0.081 | 0.940 | |
| −0.421 | 0.007 | 0.058 | 0.056 | 0.929 | −0.184 | 0.010 | 0.076 | 0.075 | 0.929 | ||
Sample size . Metrics: ABias (absolute bias), MCSD (Monte Carlo SD), AESE (asymptotic SE), CP (coverage of the 95% CI). Column blocks compare weights vs. .
Table 3.
Simulation results under Scenario IC(a) and IC(b) with equally spaced knots and stacking time at (1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0) and completely independent censoring.a
| Time | True | ABias | MCSD | AESE | CP | True | ABias | MCSD | AESE | CP | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1.0 | 0.904 | 0.002 | 0.037 | 0.038 | 0.958 | 1.341 | 0.002 | 0.039 | 0.039 | 0.961 | |
| −0.008 | 0.004 | 0.059 | 0.060 | 0.950 | 0.355 | 0.004 | 0.063 | 0.064 | 0.954 | ||
| 1.5 | 0.871 | 0.000 | 0.042 | 0.042 | 0.953 | 1.333 | 0.002 | 0.039 | 0.040 | 0.961 | |
| −0.146 | 0.008 | 0.063 | 0.062 | 0.939 | 0.195 | 0.007 | 0.071 | 0.072 | 0.938 | ||
| 2.0 | 0.839 | 0.003 | 0.048 | 0.049 | 0.947 | 1.312 | 0.000 | 0.044 | 0.045 | 0.963 | |
| −0.238 | 0.010 | 0.070 | 0.071 | 0.930 | 0.077 | 0.009 | 0.083 | 0.084 | 0.928 | ||
| 2.5 | 0.812 | 0.005 | 0.055 | 0.056 | 0.953 | 1.287 | 0.002 | 0.050 | 0.052 | 0.956 | |
| −0.304 | 0.012 | 0.077 | 0.078 | 0.929 | −0.013 | 0.011 | 0.094 | 0.095 | 0.919 | ||
| 3.0 | 0.789 | 0.005 | 0.064 | 0.065 | 0.940 | 1.261 | 0.002 | 0.060 | 0.062 | 0.951 | |
| −0.354 | 0.015 | 0.086 | 0.087 | 0.929 | −0.084 | 0.015 | 0.106 | 0.107 | 0.928 | ||
| 3.5 | 0.768 | 0.007 | 0.075 | 0.076 | 0.944 | 1.235 | 0.004 | 0.071 | 0.073 | 0.953 | |
| −0.392 | 0.020 | 0.095 | 0.096 | 0.932 | −0.140 | 0.021 | 0.118 | 0.119 | 0.930 | ||
| 4.0 | 0.751 | 0.010 | 0.086 | 0.087 | 0.935 | 1.211 | 0.007 | 0.084 | 0.085 | 0.935 | |
| −0.421 | 0.025 | 0.105 | 0.106 | 0.932 | −0.185 | 0.027 | 0.131 | 0.132 | 0.930 | ||
Sample size ; censoring rate 50%. Metrics: ABias (absolute bias), MCSD (Monte Carlo SD), AESE (asymptotic SE), CP (coverage of the 95% CI). Column blocks compare weights (1, 1, 1) vs. (1, 2, 2).
Comparing the two weight specifications, versus (1, 2, 2), the bias patterns are essentially unchanged. Under covariate-dependent censoring (Table 2), MCSD and AESE tend to be larger with (1, 2, 2) than with (1, 1, 1), and the association effects are positively shifted under the (1, 2, 2) weight specification. Under completely independent censoring (Table 3), MCSD and AESE are lower compared to the covariate-dependent censoring case, and these uncertainty metrics appear to be more similar when different weight specifications are considered. The similarity between the uncertainty metrics arises likely because the censoring survival functions are modeled by Kaplan-Meier estimator without covariates.
In Web Appendix SA.10, we report additional simulations under the independent data setting, including Scenarios I(a) and I(c) under covariate-dependent censoring with 25% censoring rate, Scenarios I(b)/I(d) and II(a)/II(b) with 50% censoring rate, coupled with low event rates. The findings are consistent with the main results. Web Appendix SA.11 extends the data-generating mechanism to cluster-correlated data settings. With clusters of varying sizes, our proposed estimators continue to perform well, with negligible bias and close to nominal coverage. Finally, in Web Appendix SA.12, we provide an additional sensitivity analysis when the locations of spline knots and stacking times differ, under Scenarios I(b) and I(d) with 50% censoring rate. Specifically, we fit the while-alive regression with spline knots at {1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0} but consider a finer grid of stacking times at {1.0, 1.3, 1.6, 1.9, 2.2, 2.5, 2.8, 3.1, 3.4, 3.7, 4.0}. This alternative implementation of the regression estimator maintains small bias and nominal coverage, but the MCSD and AESE appear slightly smaller compared to our default implementation.
7. WHILE-ALIVE REGRESSION ANALYSIS OF THE HF-ACTION TRIAL
HF-ACTION is a randomized controlled clinical trial to evaluate the efficacy and safety of exercise training among patients with heart failure with median follow-up 30 months (O’Connor et al. 2009). Patients were randomly assigned to usual care alone or usual care plus aerobic exercise training that consists of 36 supervised sessions followed by home-based training. The primary endpoint was a composite of all-cause mortality or all-cause hospitalization. Secondary endpoints included all-cause mortality, the composite of cardiovascular mortality or cardiovascular hospitalization, and the composite of cardiovascular mortality or heart failure hospitalization. We analyzed the data using our proposed method, adjusting for exercise duration from the CPX test (in minutes), best available baseline left ventricular ejection fraction (LVEF), and history of depression (binary), using complete cases. Our analysis focused on a high-risk subgroup consisting of 719 nonischemic patients with a baseline cardiopulmonary test duration of less than 12 minutes (the analysis of the full study cohort was reported Web Appendix SA.13). We specified a log link function and assigned weights for all-cause of hospitalization and all-cause of death, respectively, emphasizing the greater importance of fatal events. To assess potentially covariate-dependent censoring, we fit a Cox proportional hazards model at a significance level of 0.05 and found that the CPX test was significantly associated with censoring time; accordingly, CPX was included in the censoring model. For this analysis, we modeled time-varying covariate effects using a B-spline basis (Gordon and Riesenfeld 1974). We formed polynomial with order- B-spline basis for with interior knots. Thus the coefficient is smooth on . The number of interior knots and the degree of spline were selected by 5-fold cross-validataion over and , and the optimal choice minimizing out-of-sample prediction error was and . We report both the treatment effect and the covariate effects under this optimal choice, along with their pointwise corresponding 95% confidence intervals.
Figure 2 presents the time-varying effects of covariates on the while-alive loss rate among this high-risk subgroup. The results reveal substantial variation in the treatment effect over time. Notably, the treatment leads to a significant reduction in the log while-alive loss rate throughout the study period, with the 95% confidence interval consistently excluding zero. This finding aligns with results from the nonparametric approach proposed by Mao (2023). The treatment effect becomes more pronounced after 1 year, suggesting that the benefits accumulate over time. These results underscore the limitations of traditional models that assume constant effects, as such approaches may fail to detect meaningful time-varying patterns in treatment efficacy, especially during the mid-study period. For instance, at 1 year, the estimated log-rate difference is −0.257, corresponding to an approximate 22.7% reduction in the while-alive loss rate for the intervention group relative to control, with a -value of 0.009. By year three, the effect increased to −0.293, corresponding to 25.4% reduction in while-alive loss rate, with a -value of 0.006. The global test for the treatment effect gives a -value of < 0.001. Additionally, exercise duration and baseline left ventricular ejection fraction (LVEF) show statistically significant and beneficial effects throughout the follow-up period, but with different trajectories over time. In contrast, the effect due to history of depression oscillates around zero, with confidence intervals consistently including zero.
Fig. 2.

Analysis of the HF-ACTION trial with high-risk subgroup using the while-alive regression model. Each panel presents the estimated covariate effect as a function of time.
In Web Appendix SA.14, we further apply the proposed while-alive regression framework to the pragmatic cluster-randomized trial STRIDE, introduced in Section 2.
8. DISCUSSION
Recent regulatory guidance, including the ICH E9(R1) addendum (European Medicines Agency 2020), has emphasized transparency in defining estimands and handling intercurrent events such as death. As summarized in Table S1, existing regression methods for recurrent and terminal events can be mapped to different strategies to handle death as an intercurrent event. Under that classification, the while-alive regression model adopt a combination of composite and while-alive strategies by directly incorporating death into the outcome and evaluating the burden of events relative to the time patients remain alive (Schmidli et al. 2023). This yields interpretable measures of the average event rate among individuals while they remain alive, providing a complementary view to estimands that condition on survival or model death separately. Our proposed regression framework expands this while-alive perspective by modeling the time-varying association with the while-alive loss rate, capturing the instantaneous event burden over time prior to death.
One implementation consideration is the selection of the degree of spline and the number of knots. To balance model fit and prevent overfitting, we select the number of knots via cross-validation. While this data-driven approach is flexible, our sandwich variance treats the selected configuration as fixed, as is standard in the spline regression literature, and it does not address the additional uncertainty arising from cross-validation. As noted by Chatfield (1995), treating the selected model as fixed may lead to an underestimation of variability. Nevertheless, simulations from the spline regression literature and ours indicate that its practical impact on coverage is typically modest. Recently, Yang et al. (2023) proposed a semi-smoothing estimating equation for selecting knots in linear splines, which avoids the need for tuning parameters common in traditional smoothing methods. However, extending this approach to composite endpoints presents additional challenges, particularly in constructing influence functions to estimate the knots, an intriguing avenue for future research. Although cross-validation is used to choose the number of knots, one can still pre-specify knot locations based on the study context. That is, one can choose interior knots at clinical landmarks where effects may plausibly change (e.g., scheduled visits) or calendar-time anchors when secular shifts are expected.
Choosing the weights for the composite endpoint can be controversial and critically depends on the study context and objective. Following Mao and Lin (2016), our method allows one to set weight reflecting the clinical severity or priority of each event type. This flexibility is useful but introduces subjectivity, and different weight choices may lead to different conclusions. Prior studies have shown that when less frequent but more critical outcomes are combined with more frequent but less severe events, the frequent event can overshadow the composite endpoint unless appropriately weighted (e.g., Baracaldo-Santamaría et al. 2023). Regulatory guidance emphasizes that components of a composite should be of comparable clinical importance, and if mortality is included, it should not be down-weighted relative to less severe events (Food and Drug Administration 2017; Baracaldo-Santamaría et al. 2023). Specification based on may thus be less clinically coherent, whereas dramatic difference between and may also allow one component to dominate the analysis results (Ozga and Rauch 2022). In our applications, we used to address severity ordering but also to avoid dominance by either component. In practice, assigning weights to different component outcomes depends on the clinical context and requires a collective effort from an interdisciplinary study team.
Finally, our method requires specifying the stacking time points . We allow the differentiation between the stacking times points in the estimating equation from the spline knots and recommend using the knots or finer points for stacking time points. A principled consideration is the number of events per time interval generated by the stacking time points. One may choose stacking time points to align with clinical landmarks, but it is often necessary to ensure that each interval contains a sufficient number of events, for numerical stability in the estimation procedure. Although there is no consensus, a reasonable rule of thumb is aiming for at least one or a few events of each type per interval, and sensitivity analysis can be considered based on alternative specifications of the stacking time points.
Supplementary Material
Supplementary material is available at Biostatistics Journal online.
FUNDING
Research in this article was supported by the National Heart, Lung, and Blood Institute [NHLBI, grant numbers R01-HL178513 and R01-HL168202] and National Institute of General Medical Sciences [NIHGM, grant number R01GM152499]. The author also thanks the Yale University-Mayo Clinic Center of Excellence in Regulatory Science and Innovation (CERSI) for supporting this study. All statements in this report, including its findings and conclusions, are solely those of the authors and do not necessarily represent the views of the NIH. The data example in Section 7 was prepared using the HF-ACTION Research Materials obtained from the NHLBI Biologic Specimen and Data Repository Information Coordinating Center (BioLINCC) and does not necessarily reflect the opinions or views of HF-ACTION or NHLBI. The second data example in Web Appendix SA.14, is based on de-identified data of the STRIDE study, which was funded primarily by the Patient Centered Outcomes Research Institute (PCORI®), with additional support from the National Institute on Aging (NIA). Funding for STRIDE is provided and the award managed through a cooperative agreement [5U01AG048270] between the NIA and the Brigham and Women’s Hospital.
Footnotes
CONFLICT OF INTEREST
None declared.
REFERENCES
- Baracaldo-Santamaría D et al. 2023. Making sense of composite endpoints in clinical research. J Clin Med. 12:4371. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bhasin S et al. 2020. A randomized trial of a multifactorial strategy to prevent serious fall injuries. N Engl J Med. 383:129–140. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Cai Z, Sun Y. 2003. Local linear estimation for time-dependent coefficients in Cox’s regression models. Scand J Statistics. 30:93–111. [Google Scholar]
- Chatfield C 1995. Model uncertainty, data mining and statistical inference. J R Stat Soc Ser A Stat Soc. 158:419–444. [Google Scholar]
- Chen X, Harhay MO, Li F. 2023. Clustered restricted mean survival time regression. Biometrical J. 65:2200002. [DOI] [PubMed] [Google Scholar]
- Chiou SH, Xu G, Yan J, Huang C-Y. 2023. Regression modeling for recurrent events possibly with an informative terminal event using r package rereg. J Stat Softw. 105:1–34. [DOI] [PMC free article] [PubMed] [Google Scholar]
- European Medicines Agency. 2020. Ich e9 (r1) addendum on estimands and sensitivity analysis in clinical trials to the guideline on statistical principles for clinical trials. Report No.: EMA/CHMP/ICH/436221/2017. [Google Scholar]
- Food and Drug Administration. 2017. Multiple endpoints in clinical trials guidance for industry. Center for Biologics Evaluation and Research (CBER). [Google Scholar]
- Freemantle N, Calvert M, Wood J, Eastaugh J, Griffin C. 2003. Composite outcomes in randomized trials: greater precision but with greater uncertainty? JAMA. 289:2554–2559. [DOI] [PubMed] [Google Scholar]
- Gordon WJ, Riesenfeld RF. 1974. B-spline curves and surfaces. In: Computer aided geometric design. Elsevier, p. 95–126. [Google Scholar]
- Mao L 2023. Nonparametric inference of general while-alive estimands for recurrent events. Biometrics. 79:1749–1760. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mao L, Lin DY. 2016. Semiparametric regression for the weighted composite endpoint of recurrent and terminal events. Biostatistics. 17:390–403. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ozga A-K, Rauch G 2022. Weighted composite time to event endpoints with recurrent events: comparison of three analytical approaches. BMC Med Res Methodol. 22:38. [DOI] [PMC free article] [PubMed] [Google Scholar]
- O’Connor CM et al. 2009. Efficacy and safety of exercise training in patients with chronic heart failure: Hf-action randomized controlled trial. JAMA. 301:1439–1450. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ragni A, Martinussen T, Scheike T. 2024. Nonparametric estimation of the patient weighted while-alive estimand. arXiv, arXiv:2412.03246, preprint: not peer reviewed. [Google Scholar]
- Schmidli H, Roger JH, Akacha M. 2023. Estimands for recurrent event endpoints in the presence of a terminal event. Stat Biopharm Res. 15:238–248. [Google Scholar]
- Sun L, Song X, Zhang Z. 2012. Mean residual life models with time-dependent coefficients under right censoring. Biometrika. 99:185–197. [Google Scholar]
- Toenges G, Mütze T, Jahn-Eimermacher A. 2021. A comparison of semiparametric approaches to evaluate composite endpoints in heart failure trials. Stat Med. 40:5702–5724. [DOI] [PubMed] [Google Scholar]
- Uno H, Horiguchi M. 2023. Ratio and difference of average hazard with survival weight: new measures to quantify survival benefit of new therapy. Stat Med. 42:936–952. [DOI] [PubMed] [Google Scholar]
- Uno H, Tian L, Horiguchi M, Hattori S, Kehl KL. 2024. Regression models for average hazard. Biometrics. 80:ujae037. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Van Houwelingen HC, Putter H. 2008. Dynamic predicting by landmarking as an alternative for multi-state modeling: an application to acute lymphoid leukemia data. Lifetime Data Anal. 14:447–463. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wei J, Mütze T, Jahn-Eimermacher A, Roger J. 2023. Properties of two while-alive estimands for recurrent events and their potential estimators. Stat Biopharm Res. 15:257–267. [Google Scholar]
- Yang G, Zhang B, Zhang M. 2023. Estimation of knots in linear spline models. J Am Stat Assoc. 118:639–650. [Google Scholar]
- Zhong Y, Schaubel DE. 2022. Restricted mean survival time as a function of restriction time. Biometrics. 78:192–201. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
