Hi !
Please, how can I extract n.event and n.risk as a new object from
example below ? Thanks in advance.
Mauricio
require(survival)
fit - survfit(Surv(time, status) ~ x, data=aml)
summary(fit)
Call: survfit(formula = Surv(time, status) ~ x, data = aml)
x=Maintained
time
sum.out-summary(fit)
names(sum.out)
[1] surv time n.risk n.event conf.int std.err
[7] lowerupperstrata call
sum.out$n.risk
[1] 11 10 8 7 5 4 2 12 10 8 6 5 4 3 2 1
sum.out$n.event
[1] 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1
names(summary(fit))
[1] surv time n.risk n.event conf.int std.err
[7] lowerupperstrata call
summary(fit)$n.risk
[1] 11 10 8 7 5 4 2 12 10 8 6 5 4 3 2 1
---
Jacques VESLOT
CNRS UMR 8090