Rev 104 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
## Look at the Akaike information criteria for the colon data#ctheta <- 1:20/2cdf <- cpl <- cpen <- cthetainitials <- rep(0, 4+ length(unique(colon$id)))for (i in seq(along=ctheta)) {tfit <- coxph(Surv(time, status) ~ rx + extent + node4 ++ frailty(id, theta=ctheta[i]) + strata(etype), colon,init=initials, iter=30)cat(i)assign(paste("tfit", i, sep='.'), tfit)cdf[i] <- sum(tfit$df)cpl[i] <- tfit$plikcpen[i] <- tfit$penaltyinitials <- c(tfit$coef, tfit$frail)}