Martin Patenaude-Monette
2011-Mar-14 14:15 UTC
[R] Cox model, model averaging and survival curve
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20110314/288e8cc8/attachment.pl>
--- included text -- I have done model selection between candidate Cox models, using AICc calculated with penalized log likelihoods. Then model averaging was done to obtain model averaged parameter estimates. Is there a way to plot survival curve from the averaged model, by estimating baseline hazard and baseline survival? -- end inclusion --- You can fit a Cox model with fixed coefficients. Assume "fixbeta" are the coefficients from your model averaging, then do ffit <- coxph(Surv(time, status) ~ x1 + x2 + .... , data=mydata, init=fixbeta, iter=0) sfit <- survfit(fit) The standard errors in sfit are incorrect of course. One could bootstrap the entire model creation process to get accurate values. Terry Therneau