Sort survival objects into a partial order, which is the same one used internally for many of the calculations.
## S3 method for class 'Surv' xtfrm(x)
This creates a partial ordering of survival objects.
The result is sorted in time order, for tied pairs of times right censored
events come after observed events (censor after death), and left
censored events are sorted before observed events.
For counting process data
(tstart, tstop, status) the ordering
is by stop time, status, and start time, again with censoring last.
Interval censored data is sorted using the midpoint of each interval.
xtfrm routine is used internally by
sort, so these results carry over to those routines.
a vector of integers which will have the same sort order as
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.