Analysis of while-alive event rate for recurrent hospitalization

INTRODUCTION

This vignette demonstrates the use of the R-package WA in the analysis of while-alive loss (or event) rate for recurrent event, e.g., hospitalization, in the presence of death (Mao, 2022).

Data

Let D denote the survival time and write ND(t) = I(D ≤ t). Let N(t) count the number of recurrent nonfatal event by time t. Since death is a terminal event, we must have that N(t) = N(t ∧ D), where b ∧ c = min (b, c). Let ℋ(t) = {ND(u), N(u) : 0 ≤ u ≤ t} denote the event history up to time t.

Estimands

Let $\mathcal L(\mathcal H)({\rm d}t)$ be a user-specified loss function that measures the instantaneous loss incurred at time t. We focus on loss functions of the form where wm(t) and wmD(t) are weights attached to an incident (i.e., new) nonfatal event or death, respectively, when the patient has already experienced m nonfatal events. This scheme allows the user to assign weights according not only to the type and timing of the incident event but also to past history. It can be useful, for example, if we want to make the loss metric more robust to patients who experience unusually large numbers of event. In that case, we can specify a wm(t) that decays with larger m.

The cumulative loss is then defined by $\mathcal L(\mathcal H)(t)=\int_0^t L(\mathcal H)({\rm d}u)$. With wm(t) ≡ w and wmD(t) ≡ wD, for example, the cumulative loss becomes ℒ(ℋ)(t) = wN(t) + wDND(t), same as the weighted composite event process considered by Mao and Lin (2016).

Let (a) denote the outcome data from group a (a = 1, 2, …, J − 1 for different treatments and a = 0 for the control). To characterize the loss profile over [0, τ] in the presence of death, define the while-alive loss rate by The numerator on the right hand side of (2) is the mean cumulative loss, akin to the mean cumulative frequency studied by Ghosh and Lin (2000), and the denominator is the restricted mean survival time (RMST; Royston & Parmar, 2011), the latter of which accounts for the length of exposure. We can interpret l(a)(τ) as the average loss experienced per unit time alive in group a over [0, τ]. Using the loss function defined in (1) with wm(t) ≡ 1 and wmD(t) ≡ 0 reduces (2) to l(a)(τ) = E{N(τ)}/E(D(a) ∧ t), the while-alive event rate for the recurrent event considered by Schmidli et al. (2021) and Wei et al. (2021). The survival-completed cumulative loss is defined by L(a)(τ) = l(a)(τ)τ, which can be considered roughly as the total loss over [0, τ] without being curtailed by death.

We can measure the effect size of treatment a as compared to the control by the loss rate ratio: That is, patients under treatment a on average experience r(a)(τ) times as much loss (or as many events) per unit time alive as compared to the control by time τ.

Tests

Testing the equality of loss rate across the J groups, i.e., is equivalent to testing $\{\log r^{(1)}(\tau),\ldots,\log r^{(J-1)}(\tau)\}^{\rm T}=\bf 0$, which can be done via a Wald-type chi-square test with (J − 1) degrees of freedom (df). Similarly, we can test the loss rate jointly with the RMST, i.e., where μD(a)(τ) = E(D(a) ∧ τ), by a Wald-type chi-square test with 2(J − 1) df. The 2(J − 1) df test will be useful if captures only recurrent event (e.g., when wmD(t) ≡ 0 in (1)) so that (5) becomes a joint test of recurrent event and death.

BASIC SYNTAX

Data fitting and summarization

The main function to fit the data is LRfit(). To use the function, the input data must be in the “long” format. Specifically, we need an id variable containing the unique patient identifiers, a time variable containing the event times, a status variable labeling the event type (status=1 for recurrent non-fatal event, =2 for death, and =0 for censoring), and, finally, a categorical (either binary or multiclass) trt variable for the treatment arm. To analyze the (unweighted) recurrent event rate, i.e., wm(t) ≡ 1 and wmD(t) ≡ 0 in (1), simply run the function in the default mode

obj<-LRfit(id,time,status,trt)

Alternatively, we can add the Dweight argument to specify a non-zero (constant) wD for death. Even more generally, we can supply self-defined wm(t) and wmD(t) through the functional arguments wH and wD, respectively. For example, the above code for the unweighted event rate is equivalent to

obj<-LRfit(id,time,status,trt,Dweight=0)

and to

# define w_m(t)
wH<-function(t,m) return (1)
# define w_m^D(t)
wD<-function(t,m) return (0)
obj<-LRfit(id,time,status,trt,wH=wH,wD=wD)

The returned object obj contains all information about the group-specific loss rate and their standard errors. To extract relevant information for a particular τ=tau, use

summary(obj,tau)

This will print out the inference results on the loss rate ratio defined in (3) comparing each group to the reference group (which can be specified through the optional ref= argument if you want to override the default) as well as the (J − 1)-df overall test of (4). To request the 2(J − 1)-df loss-rate/RMST joint test of (5), add the option joint.test=T to the summary() function.

Plot of L(⋅)

To plot the estimated survival-completed cumulative loss L(a)(τ) as a function of τ, use

plot(obj,conf=TRUE)

This by default plots L(a)(τ) for all groups. The option conf=T requests the 95% confidence limits for each L(a)(τ) to be overlaid. To restrict to specific groups, use the group= option. To override the default color of the group-specific curves, use the group.col argument to supply a J-vector of colors. Other graphical parameters can be added and, if so, will be passed to the underlying generic plot method.

AN EXAMPLE WITH THE HF-ACTION TRIAL

Data description

The Heart Failure: A Controlled Trial Investigating Outcomes of Exercise Training (HF-ACTION) study was conducted between 2003–2007 to investigate whether adding exercise training to the usual care of heart failure patients improves their cardiovascular outcomes (O’Conner et al., 2009). We focus on a high-risk subgroup consisting of 741 nonischemic patients with baseline cardiopulmonary test duration less than or equal to 12 minutes and analyze recurrent hospitalizations as well as overall survival.

Among the 741 patients, 364 were assigned to participate in exercise training sessions in addition to receiving usual care, and the remaining 377 received usual care alone as control. Over a median follow-up of 2.5 years, 49 (13.5%) patients died in the exercise training arm, with an average of 1.8 hospitalizations per patient; 75 (19.9%) patients died in the usual care arm, with an average of 2.0 hospitalizations per patient. While patients undergoing exercise training experience only moderately fewer hospitalizations in the course of follow-up, they are also much less likely to die than those in the control group. The differential survivorship needs to be taken into account when assessing the treatment effect on hospitalization.

The associated dataset hfaction_cpx12 is contained in the WA package and can be loaded by

library(WA)
head(hfaction_cpx12)
#>           id       time status trt
#> 1 HFACT00001 0.60506502      1   0
#> 2 HFACT00001 1.04859685      0   0
#> 3 HFACT00002 0.06297057      1   0
#> 4 HFACT00002 0.35865845      1   0
#> 5 HFACT00002 0.39698836      1   0
#> 6 HFACT00002 3.83299110      0   0

The dataset is already in a format suitable for LRfit() (status= 1 for hospitalization and = 2 for death). The time variable is in units of years and trt=0 for usual care (control) and 1 for exercise training.

Graphical analysis

First, consider the unweighted while-alive hospitalization rate.

dat<-hfaction_cpx12
obj<-LRfit(dat$id,dat$time,dat$status,dat$trt)
## print some descriptive information 
obj
#> Call:
#> LRfit(id = dat$id, time = dat$time, status = dat$status, trt = dat$trt)
#>     N Rec. event Death Med. Follow-up
#> 0 377        747    75       2.496920
#> 1 364        644    49       2.536619

Let’s plot the estimated group-specific survival-completed cumulative frequency.

plot(obj,conf=T,xlab="Time (years)",xlim=c(0, 3.5),ylim=c(0,3))

This pretty much reproduces the second panel in Figure 3 of Mao (2022). We can see that the curve in the exercise training arm is substantially lower than that in the usual care arm, with only slightly overlapping 95% confidence intervals at τ = 3.5 years. This bodes well for the statistical significance of treatment effect on the while-alive hospitalization rate (recall that l(a)(τ) = L(a)(τ)/τ).

Estimation and inference

Formal analysis results at τ = 3.5 years can be obtained through

## summarize the inference results at tau=3.5 years
summary(obj,tau=3.5,joint.test=T)
#> Call:
#> LRfit(id = dat$id, time = dat$time, status = dat$status, trt = dat$trt)
#> 
#> Analysis of log loss rate (LR) by tau = 3.5:
#>                Estimate   Std.Err Z value  Pr(>|z|)    
#> Ref (Group 0) -0.223940  0.054308 -4.1235 3.731e-05 ***
#> Group 1 vs 0  -0.186019  0.084590 -2.1991   0.02787 *  
#> ---
#> Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#> 
#> Test of group difference in while-alive LR
#> X-squared = 4.835905, df = 1, p = 0.02787301
#> 
#> Point and interval estimates for the LR ratio:
#>               LR ratio 95% lower CL 95% higher CL
#> Group 1 vs 0 0.8302577     0.703412     0.9799773
#> 
#> 
#> Analysis of log RMST (restricted mean survival time) by tau = 3.5:
#>               Estimate  Std.Err Z value  Pr(>|z|)    
#> Ref (Group 0) 1.107544 0.016064 68.9443 < 2.2e-16 ***
#> Group 1 vs 0  0.056689 0.020349  2.7858  0.005339 ** 
#> ---
#> Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#> 
#> 
#> Test of group difference in while-alive LR and RMST
#> X-squared = 9.913726, df = 2, p = 0.007034964

Besides the function call, the first part of the output is about the log-loss rate: log l(0)(τ) (Ref) and log r(1)(τ) = log l(1)(τ) − log l(0)(τ) (Group 1 vs 0). We can see that the two-sided z-test on the log-loss rate ratio generates a p-value of 0.028, which, of course, agrees with the p-value of the 1-df chi-square test of (4) since there are only two groups. Further below is a table for the point and interval estimates for the loss rate ratio: 0.830 with 95% confidence interval (0.703, 0.980) — exercise training on average reduces hospitalization by 1-0.830=17% per year alive as compared to usual care by year 3.5. As a result of specifying joint.test=T, we get the inference results for the RMST and the joint test of (5) at the end. The 2-df joint test gives a p-value of 0.007, suggesting that the (beneficial) treatment effect is highly significant on survival and hospitalization jointly.

As supplemental analysis, we consider a weighted composite loss in (1) with wm(t) ≡ 1 and wmD(t) ≡ 2. This is implemented by

## fit the data using the weighted composite loss
obj2<-LRfit(dat$id,dat$time,dat$status,dat$trt,Dweight=2)
## summarize the results at tau=3.5 years
summary(obj2,tau=3.5)
#> Call:
#> LRfit(id = dat$id, time = dat$time, status = dat$status, trt = dat$trt, 
#>     Dweight = 2)
#> 
#> Analysis of log loss rate (LR) by tau = 3.5:
#>                Estimate   Std.Err Z value Pr(>|z|)  
#> Ref (Group 0) -0.038361  0.055785 -0.6877  0.49167  
#> Group 1 vs 0  -0.216208  0.086746 -2.4924  0.01269 *
#> ---
#> Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#> 
#> Test of group difference in while-alive LR
#> X-squared = 6.212179, df = 1, p = 0.01268744
#> 
#> Point and interval estimates for the LR ratio:
#>               LR ratio 95% lower CL 95% higher CL
#> Group 1 vs 0 0.8055679    0.6796163     0.9548617

This shows a significant treatment effect on the weighted composite event rate (p-value 0.013), consistent with the conclusion drawn from the earlier analysis.

References

  • Ghosh, D. & Lin, D. Y. (2000). Nonparametric analysis of recurrent events and death. Biometrics, 56, 554–562.

  • Mao, L. (2022). Nonparametric inference of general while-alive estimands for recurrent event. Submitted.

  • Mao, L. & Lin, D. Y. (2016). Semiparametric regression for the weighted composite endpoint of recurrent and terminal events. Biostatistics, 172, 390–403.

  • O’Connor, C. M., Whellan, D. J., Lee, K. L., Keteyian, S. J., Cooper, L. S., Ellis, S. J., … & Rendall, D. S. (2009). Efficacy and safety of exercise training in patients with chronic heart failure: HF-ACTION randomized controlled trial. JAMA, 301, 1439–1450.

  • Royston, P. & Parmar, M. K. (2011). The use of restricted mean survival time to estimate the treatment effect in randomized clinical trials when the proportional hazards assumption is in doubt. Statistics in Medicine, 30, 2409–2421.

  • Schmidli, H., Roger, J. H. & Akacha, M. (2021). Estimands for recurrent event endpoints in the presence of a terminal event. Statistics in Biopharmaceutical Research, 10.1080/19466315.2021.1895883.

  • Wei, J., Mutze, T., Jahn-Eimermacher, A., Roger, J. & Recurrent Event Qualification Opinion Consortium. (2021). Properties of two while-alive estimands for recurrent events and their potential estimators. Statistics in Biopharmaceutical Research, 10.1080/19466315.2021.1994457.