Hello All,

Below is some sample survival analysis code. I'd like to able to get the 
results from print(gehan.surv) into a matrix or data frame, so I can manipulate 
them and then create a table using odfWeave. Trouble is, I'm not quite sure how 
make such a conversion using the results from a print method.

Is there some simple way of doing this?

Thanks,

Paul

require(survival)
require(MASS)

attach(gehan)
gehan.surv <- survfit(Surv(time, cens) ~ treat, data= gehan, conf.type = 
"log-log")
print(gehan.surv)

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to