The counting process analysis might be better described as an analysis of "times to events" rather than of "time to first event." Therneau and Grambsch describe various approaches to multiple events of the same type per subject in Section 8.5.1; quotes below are from there.
In your scenario, the time scale is time since study entry:
a subject occurs 3 times in the counting process format, (0,15], (15,40] and (40,100], and at each of end of an interval an event occurred.
For this time scale, Therneau and Grambsch explain the difference between a typical Cox survival model and an Andersen-Gill model as follows (where $Y_i(t)$ is the at-risk indicator for individual $i$ at time $t$):
The difference lies in the definition of $Y_i(t)$; for survival data, the individual ceases to be at risk when an event occurs and $Y_i$ goes to zero, but for The Andersen-Gill model for recurrent events, $Y_i(t)$ remains one as events occur.
Your subject would thus appear in the risk set for all event times up to time = 100
. "This model is ideally suited to the situation of mutual independence of the observations within a subject." Robust standard errors help account for things like unmeasured outcome-associated covariates that differ among individuals.
In this Andersen-Gill model the time for an individual is not reset to 0 at each event. The (unmodeled) baseline hazard can change over time, as in a Cox model, but it remains the same for all events and extends out to the very last event time.
There are alternatives that might be more appropriate for different situations.
You can, for example, model the inter-event intervals instead of the times to events. "The model assumption in this case is that the gap times form a renewal process." That no longer requires the counting process data format, but you have to re-work data of the type you show to so that the gap time (stopTime - startTime
) is the time to event or censoring for each data row for an individual.
Therneau and Grambsch describe two other ways to handle recurrent events. One treats "the ordered outcome data set as though it were an unordered competing risks problem." That typically does not require the counting process form of data, and (unlike the above approaches) "allows a separate underlying hazard for each event."
A "conditional model," in contrast, assumes that the events have a strict order:
... in general, a subject is not at risk for the $k^{th}$ event until he/she has experienced event $k - 1$. To accomplish this, the counting process style of input is used, as in the AG model, but each event is assigned to a separate stratum.
The rest of Section 8.5 illustrates these approaches.
In response to comments
Quotes again are from Therneau and Grambsch, Section 8.5.1. If analysis proceeds along continuous time from "time since study entry," without resetting time = 0
at each event for an individual, then an Andersen-Gill model
can in fact be accurately approximated with Poisson regression software in the same manner in which Laird and Olivier [J. Am. Stat. Assoc., 76:231- 240, 1981] approximate an ordinary single-event Cox model.
That's effectively time transformation using the cumulative rate function, as indicated in a comment, a transformation that is the same for all individuals for each inter-event interval.
In that situation, the underlying
assumption is equivalent to each individual counting process possessing independent increments, i.e., the numbers of events in nonoverlapping time intervals are independent, given the covariates. Such processes are typically modeled as time-varying Poisson processes, hence the Poisson connection.
The alternative time scale that resets to time = 0
at each event, "time since entry or last event," will not in general provide the same results except in the special case of exponentially distributed gap times suitable for a simple Poisson model.
The model assumption in this case is that the gap times form a renewal process. The famed lack of memory of the exponential distribution implies that a renewal process with exponential gap times is also a counting process with independent increments; but in general counting processes cannot possess both independent increments and independent gap times.
One way to think about this: any time transformation of a gap time would only apply to the individual whose data had that particular gap. There would be no way in general to apply that time transformation to other individuals to identify the corresponding risk sets at (gap-end) event times.
Finally, I don't know whether it can be shown that the pseudo-likelihood is insensitive to correlations within subject event times. There might be some literature on that, but I haven't looked for it. My understanding is that the approach with recurrent events is similar to the working independence assumption used in other marginal modeling: you assume the independence to start, and then use robust covariance estimates for regression coefficients.