What Proportional Effects Mean for Recurrent Events
A proportional effect means that a covariate’s relative effect is constant over the analysis time scale. In a recurrent-event model, the precise interpretation depends on the model: an intensity model describes an instantaneous event rate conditional on the subject’s observed history, while a marginal rate model describes a population-average rate. The diagnostic question is similar in either case: does the covariate coefficient remain constant as time passes?
For example, an Andersen–Gill-type multiplicative intensity model may be written as follows. Here \(N_i(t)\) counts events for subject \(i\) through time \(t\), \(Y_i(t)\) indicates that the subject is under observation and at risk, and \(X_i\) is a covariate that does not change over time.
The history \(\mathcal{H}_i(t)\) contains the observed event and covariate history up to time \(t\). In this model, comparing subjects with \(X_i=1\) and \(X_i=0\), at the same time and under the stated conditioning, gives an intensity ratio of \(\exp(\beta)\). Proportionality means that this ratio does not vary with \(t\). For a marginal rate model, the analogous statement concerns the specified marginal rate ratio, not necessarily a subject-specific intensity ratio.
A constant coefficient is a modeling restriction, not a claim that individual subjects experience constant event rates. The baseline rate \(\lambda_0(t)\) may vary freely with time. The restriction is that the covariate multiplies that baseline by the same relative amount throughout follow-up. Also distinguish a changing covariate value from a changing covariate effect: the earlier material on time-varying covariates concerns the former, whereas this tutorial checks whether the coefficient itself changes.
Checking the Restriction With a Time Interaction
A direct check augments the model with a covariate-by-time interaction. For a positive time scale, one useful specification is
where \(\tau\) is a chosen reference time, and \(\mathbf{Z}_i(t)\) denotes other covariates. The coefficient for \(X_i\) at time \(t\) is \(\beta+\gamma\log(t/\tau)\). Thus, for a one-unit difference in \(X_i\), the model’s relative effect at time \(t\) is \(\exp\{\beta+\gamma\log(t/\tau)\}\). At \(t=\tau\), it is \(\exp(\beta)\). The proportional-effects null hypothesis is \(H_0:\gamma=0\).
The log-time form is one choice, not a universal law. It is sensible when a smooth trend across follow-up is plausible and time is positive. Other prespecified functions, such as a centered linear time interaction or a small number of time intervals, answer different questions about how the effect changes. Choose the time function based on scientific context and the time scale before inspecting results where possible. Trying many forms and reporting only the most significant one makes the nominal p-value misleading.
For inference, estimate the interaction coefficient and use a variance estimator that accounts for clustering of recurrent events within subjects. In a marginal estimating-equation analysis, for example, the sandwich variance is built from subject-level score or estimating-function contributions. Its validity relies on independent subjects, an adequate number of independent clusters, and a correctly specified mean structure for the estimand; it does not require events from the same subject to be independent. A Wald test uses the estimated coefficient divided by its cluster-robust standard error. For several time-interaction terms, test their joint null with a cluster-robust Wald test rather than interpreting each coefficient in isolation.
The basic assumptions still matter. Subjects should be independent of one another, and the model’s risk sets, event process, and covariate history must be constructed consistently with the chosen estimand. Censoring and loss to follow-up must be noninformative conditional on the modeled information, or handled with an appropriate method. There must be enough events across the time range to estimate a trend. Robust standard errors address within-subject dependence in uncertainty estimation; they do not repair an incorrect risk set, informative censoring, a misspecified mean model, or a poorly chosen time scale.
Worked Example: A Log-Time Interaction With Cluster-Robust Inference
Suppose a hypothetical study follows 80 subjects for recurrent events. The fitted intensity model uses treatment \(X_i\), time in days, reference time \(\tau=180\) days, and additional prespecified covariates. The reported interaction estimate is \(\hat{\gamma}=0.50\), with cluster-robust variance \(0.04625\). Assume subjects are independent clusters and that the model and follow-up assumptions above are reasonable for the intended intensity comparison.
The robust standard error and Wald statistic are
The two-sided normal-reference p-value is approximately \(0.0201\). At the 5% level, this is evidence against \(H_0:\gamma=0\) under the fitted model. A 95% Wald interval for the interaction is
At 180 days, the treatment intensity ratio is \(\exp(\beta)\). At 360 days, the ratio relative to its value at 180 days is multiplied by
Thus the fitted treatment ratio at 360 days is about 1.414 times the ratio at 180 days, holding the other model terms fixed. The result is evidence of a time trend in the treatment effect on the modeled intensity scale; it does not establish that treatment causes the trend. The normal-reference calculation is most defensible with enough independent subjects for the cluster-robust approximation to work.
Residual-Based Diagnostics
A time-interaction test evaluates a particular functional form. A residual diagnostic can reveal patterns that the chosen form misses. For a Cox-type multiplicative intensity model, an event-time score residual for a covariate compares the observed covariate value at an event with its risk-set weighted mean at that time. In the simple unweighted form, its contribution is \(x_{\text{event}}-\bar{x}_{R}(t)\), where \(\bar{x}_{R}(t)\) is the risk-set mean using the model’s event-time weights. Recurrent events contribute repeatedly, and each event’s risk set must follow the fitted model’s definition.
Under a correctly specified constant-coefficient model, such residuals should not show a systematic pattern with time. Plot them against event time, often with a smoother and a zero reference line. A sustained increase or decrease can indicate a changing coefficient, though it may also reflect an omitted time-varying covariate, an incorrect baseline or risk-set specification, or sparse data at the edges of follow-up. Because a subject can contribute many residuals, ordinary event-level independence bands are inappropriate. Use a cluster-aware uncertainty calculation, such as a subject-level sandwich procedure or a subject-level bootstrap, when quantifying uncertainty in a residual trend.
Residuals must match the fitted model. A Cox-type score residual should not be transferred uncritically to a marginal rate model with a different estimating equation. For such a model, use its corresponding score, estimating-function, or deviance residuals and account for subject clustering. A residual plot is a diagnostic, not a substitute for a clearly specified estimand or a formal test.
Worked Example: Reading a Cluster-Aware Residual Pattern
In a hypothetical recurrent-event analysis, event-time residuals for a binary exposure are grouped into four equal-duration follow-up bands. The table gives the mean residual within each band and the number of distinct subjects contributing at least one event there. Assume the residuals were formed from the fitted model’s risk sets; repeated events from a subject remain clustered for uncertainty calculations.
| Follow-up band | Mean residual | Distinct contributing subjects |
|---|---|---|
| 0–90 days | -0.34 | 52 |
| 90–180 days | -0.12 | 49 |
| 180–270 days | 0.15 | 41 |
| 270–360 days | 0.31 | 33 |
The band means rise from \(-0.34\) to \(0.31\), crossing zero. This ordered pattern is a reason to inspect a smooth residual-versus-time plot and to consider a prespecified time interaction. It is not by itself a p-value or proof of nonproportionality: the later bands contain fewer contributing subjects, and the four means are correlated because subjects may contribute events in multiple bands. A cluster-aware uncertainty assessment is needed before drawing an inferential conclusion. The analysis should also check whether changing covariates, censoring, or a risk-set error could explain the pattern.
Choosing a Diagnostic and Recognizing Failure Modes
The interaction test and residual plot are complementary. The interaction test gives an interpretable estimate and test for a specified time function. Residuals provide a broader check for systematic time structure but can be noisy and are sensitive to how they are smoothed or grouped. A formal test of one interaction does not rule out other forms of time variation. Conversely, a visually irregular residual plot is not sufficient evidence to reject proportionality, especially with few independent subjects or few late events.
A stratified model can allow different baseline rates across a prespecified grouping variable while retaining a common covariate effect within strata. This addresses baseline differences, not a smoothly changing covariate coefficient. It is therefore not a general substitute for a time-interaction check. Likewise, choosing separate effects for event order addresses a different source of heterogeneity; it should not be used to explain away a time trend without a substantive reason.
Common failure modes include a sparse late risk set, an incorrectly defined at-risk indicator, an unsuitable time transformation, unmodeled time-varying covariates, and dependence among subjects that invalidates the cluster structure. Check risk-set counts and event counts over time, inspect whether the effect changes under a reasonable prespecified time scale, and verify that the number of independent subjects—not merely the number of events—is adequate for robust inference. If conclusions depend strongly on one subject or one time band, report that instability rather than presenting a precise-looking test as decisive.
A nonsignificant test is also not confirmation of proportionality. It may reflect limited precision, few late events, or low power to detect the true pattern. Report the estimated interaction and its interval, describe the diagnostic plot and the available follow-up information, and state the model scale. If substantial nonproportionality is plausible, that finding motivates a model that explicitly represents the changing effect; the diagnostic alone does not select the best alternative.
Worked Example: A Nonsignificant Interaction Is Not Proof of Constancy
A second hypothetical analysis of 60 independent subjects and 310 recurrent events estimates a log-time interaction as \(\hat{\gamma}=0.20\), with cluster-robust \(SE=0.18\). Assume the interaction and other model terms were prespecified and the cluster-robust approximation is reasonable.
The Wald statistic is
for a two-sided normal-reference test. The 95% Wald interval is
Since the interval includes zero and the p-value exceeds 0.05, this analysis does not provide strong evidence against a constant effect for this particular log-time interaction. But the interval also permits meaningful positive or negative trends. For a time multiplication by \(e\), the estimated relative-effect multiplier is \(\exp(0.20)=1.221\), with interval \((\exp(-0.1528),\exp(0.5528))=(0.8583,1.738)\). The broad interval makes the limited precision clear. The appropriate conclusion is not that proportionality has been proved, but that this study has not precisely resolved the specified time trend.
Check Your Understanding
Answer each question, then compare with the solutions below.
- In a model with coefficient \(\beta X+\gamma X\log(t/\tau)\), what null hypothesis represents a constant effect over time?
- If \(\hat{\gamma}=0.30\), what is the fitted multiplier in the exposure relative effect when time doubles?
- A residual plot rises over time, but there are very few subjects still observed late in follow-up. Give two reasons not to interpret the pattern as conclusive evidence.
- Why does a subject-clustered robust standard error not fix an incorrectly specified mean model?
- For an interaction estimate of \(0.40\) with robust standard error \(0.20\), compute the Wald statistic and approximate two-sided normal p-value. State the conclusion at the 5% level.
Solutions. (1) Test \(H_0:\gamma=0\); this removes the time dependence from the coefficient. (2) The multiplier is \(\exp\{0.30\log(2)\}=\exp(0.2079)=1.231\), so the fitted relative effect is about 1.231 times as large after time doubles. (3) Late residuals may be unstable because few independent subjects contribute, and repeated events from the same subjects make event-level values dependent; the apparent trend may also result from sparse late risk sets or model misspecification. (4) The sandwich adjusts the estimated uncertainty for within-subject dependence, but it does not make an incorrect model for the mean rate or intensity correct. (5) \(z=0.40/0.20=2.00\), giving a two-sided normal p-value of about \(0.0455\). At the 5% level, this is evidence against the specified zero-interaction null, subject to the model and cluster-robust assumptions.