Enrollment is integrated over the piecewise-constant rates in
x$gamma and durations in x$R, summing rates across strata.
Thus, at each requested calendar time, the median enrollment time is the
first time at which expected cumulative enrollment reached one-half of the
enrollment accumulated by then. Before any enrollment has occurred, the
result is NA_real_.
The computation represents potential follow-up for all subjects randomized
by the requested calendar time. Conceptually, each subject contributes the
time from enrollment to that calendar time, regardless of whether the
subject would have experienced the event of interest, discontinued, or
dropped out. Event and dropout assumptions such as x$lambdaC,
x$etaC, and x$etaE therefore do not enter the calculation.
This is not observed follow-up among subjects who remain under observation.
This definition is continuous at the time enrollment completes when the
enrollment rate immediately before completion is positive. The value may
have kinks when an enrollment rate changes. A zero-enrollment period can
produce a discontinuity because no subjects have enrollment times within
that interval.