Skip to content
Prev 172795 / 398506 Next

RV: help

Jani Lobo <lobo <at> grupocomar.com> writes:
It's always good to use an example that can be run by other people, 
and it is easy: just use the example from the documentation

library(survival)
fit <- survfit(Surv(time, status) ~ x, data=aml)
# str tells you what fit has to offer
str(fit)

### Too bad, no summary data available here, looks
## like print.survfit does the job
getAnywhere(print.survfit)

Checking the code: there are a lot of print statements in here, 
and the summary results are not returned. Now you have two choices: 
either use the code from print.survfit, copy it, and get the values
you need from a changed function. Can be some work.

Or check if someone else has done the work for you, and bingo:

summary.survfit in package Design looks like it is doing the job.

Dieter
















summary.survfit {Design}