Rev 104 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
## Fit models to the Colon cancer data used in Lin#fitc1 <- coxph(Surv(time, status) ~ rx + extent + node4 + cluster(id)+ strata(etype), colon)fitc1fitc2 <- coxph(Surv(time, status) ~ rx + extent + node4 +frailty(id, dist='gauss', trace=T)+ strata(etype), colon)fitc2fitc3 <- coxph(Surv(time, status) ~ rx + extent + node4 + frailty(id, trace=T)+ strata(etype), colon)fitc3fitc4 <- coxph(Surv(time, status) ~ rx + extent + node4 + frailty(id, df=30)+ strata(etype), colon)fitc4# Do a fit, removing the no-event peopletemp <- tapply(colon$status, colon$id, sum)keep <- !(is.na(match(colon$id, names(temp[temp>0]))))fitc5 <- coxph(Surv(time, status) ~ rx + extent + node4 +cluster(id)+ strata(etype), colon, subset=keep)## Do the factor fit, but first remove the no-event people## Ha! This routine has a factor with 506 levels. It uses all available# memory, and can't finish in my patience window. Commented out.#fitc4 <- coxph(Surv(time, status) ~ rx + extent + node4 + factor(id), colon,# subset=keep)