Description Usage Arguments Value Examples
Given survival information (time and status) for a set of subjects, compute all pairs (i,j) for which patient i has the event before patient j.
1  | surv_to_pairs(time, event = rep(1, length(time)))
 | 
time | 
 A vector of follow up time for the subjects  | 
event | 
 A vector of status indicator for the subjects, normally   | 
A list of vectors, where the i-th vector is the set of patients that have the events after patient i.
1 2 3  | time <- c(5,6,7,7,8,9)
event <- c(1,0,0,1,1,0)
res <- surv_to_pairs(time,event)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.