Displaying 2 results from an estimated 2 matches for "lsurv2".
Did you mean:
surv2
2010 Sep 23
2
extending survival curves past the last event using plot.survfit
Hello,
I'm using plot.survfit to plot cumulative incidence of an event.
Essentially, my code boils down to:
cox <-coxph(Surv(EVINF,STATUS) ~ strata(TREAT) + covariates, data=dat)
surv <- survfit(cox)
plot(surv,mark.time=F,fun="event")
Follow-up time extends to 54 weeks, but the last event occurs at week
30, and no more people are censored in between. Is there a
2013 Apr 11
0
plotting the cumulative hazard function of a process whose intensity function is specified
...lt;-rep(0,n)
k<-1
for (i in 1:n){
u<-re[k]
}
while (ru[k] <l(u)/ld(u)){
k<-k+1
u<-u+re[k]
y[i]<-u
k<-k+1
}
cen<-rexp(n,rate=lamc)
}
obj<-Surv(floor(pmin(y,cen)),ifelse(y<-cen,1,0))
u<-gendata(n,lamc,k1,k2)
lsurv2<-survfit(Surv(floor(pmin(y,cen)) ~ x, data = u)
plot(lsurv2,fun='cumhaz',xlab='temps',ylab='has',noconf)
[[alternative HTML version deleted]]