Description Usage Arguments Author(s) Examples
Create simple life table
1 2 3 4 5 6 7 |
x |
time formula (Surv) or matrix/data.frame with columns time,status or entry,exit,status |
strata |
Strata |
data |
data.frame |
breaks |
Time intervals |
confint |
If TRUE 95% confidence limits are calculated |
... |
Additional arguments to lower level functions |
Klaus K. Holst
1 2 3 4 5 6 7 8 9 10 | library(timereg)
data(TRACE)
lifetable(Surv(time,status==9)~sex+I(cut(wmi,c(-Inf,1,1.5,Inf))),
data=TRACE,breaks=c(0.2),confint=TRUE)
d <- with(TRACE,lifetable(Surv(time,status==9)~sex+vf,breaks=c(0,0.2,0.5,8.5)))
summary(glm(events ~ offset(log(atrisk))+factor(int.end)*vf + sex*vf,
data=d,poisson))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.