search for: cphres

Displaying 1 result from an estimated 1 matches for "cphres".

2008 Dec 04
1
comparing SAS and R survival analysis with time-dependent covariates
..., 5, 6, 7, 7), start=c(0.0, 0.5, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 3.0), end=c(0.5, 3.0, 1.0, 1.5, 6.0, 8.0, 1.0, 8.0, 21.0, 3.0, 11.0), delir=c(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1), outcome=c(0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1)) tmp surv = Surv(time=tmp$start, time2=tmp$end, tmp$outcome) cphres = coxph(surv ~ tmp$delir, method="exact") summary(cphres)[["coef"]] After breaking a tie b/w an event and a time-dependent observation, R gives the same result as SAS. tmp$end[2]=tmp$end[2] + .1 tmp surv = Surv(time=tmp$start, time2=tmp$end, tmp$outcome) cphres = coxph(surv ~...