Hi,

I'm having the following loop:

result <- vector("list",100)
for (i in 1:max(dat$simNumber))
{  
result[[i]]<-survfit(Surv(dat[dat$simNumber==i,]$TAFD,dat[dat$simNumber==i,]$DV)~1)

}

In a next step, I would like to calculate the mean, 5% and 95% PI of the 
Kaplan-Meier estimates of the 100 simulated problems stored under result in the 
result[[i]]$surv.

Can anyone help me with this?

Tx!



Notice:  This e-mail message, together with any attachme...{{dropped:14}}

______________________________________________
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