search for: r39792

Displaying 1 result from an estimated 1 matches for "r39792".

Did you mean: 139792
2006 Dec 05
0
How to join data.frames containing Surv objects?
...structure by rbind() or merge() I cannot find a way to preserve the class of a Surv object (see example). Reading the help page for rbind, I an uncertain if I could expect that a Surf oject retains it's class, but I would wish it did. Thanks Heinz T?chler R version 2.4.0 Patched (2006-11-03 r39792) Windows XP library(survival) ## create example data starttime <- rep(0,5) stoptime <- 1:5 event <- c(1,0,1,1,1) group <- c(1,1,1,2,2) ## build Surv object survobj <- Surv(starttime, stoptime, event) ## build data.frame with Surv object df.test <- data.frame(survobj, g...