search for: delir

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

Did you mean: decir
2008 Dec 04
1
comparing SAS and R survival analysis with time-dependent covariates
...ies=exact; if timedeli>days then deli=0; else deli=1; run; Example (continued). R gives HR=3.91: tmp = data.frame(id=c(1, 1, 2, 2, 3, 4, 5, 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 observa...