Re: [R] calculating quantiles

2013-10-30 Thread Terry Therneau
On 10/30/2013 06:00 AM, r-help-requ...@r-project.org wrote: 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

[R] calculating quantiles

2013-10-29 Thread Rossenu, Stefaan
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 s