Re: [R] how to calculate predicted probability of Cox model

2012-03-30 Thread JiangGZ
Thanks for your reply. I'm trying to use "predictProb.coxph()" function in "peperr" package to calculate the predicted probability. Here the particular time, do you mean the total follow-up time for each subject? Because the predict.coxph() function didn't provide a time parameter to inp

[R] how to calculate predicted probability of Cox model

2012-03-29 Thread JiangGZ
Dear List, Because Cox proportional hazards model didn't give the baseline hazard function, how to calculate the predictive probability for each test sample at a special time point,such as 5-year or 10-year ? In survival package, predict.coxph() function gives three different type of predict

[R] Problem of COX model with time dependent covariate

2011-12-26 Thread JiangGZ
Hi all, I am trying to detect association between a covariate and a disease outcome using R. This covariate shows time-varying effect, I add a time-covariate interaction item to build Cox model as follows: COX <- coxph(as.formula("Surv(TIME,outcome)~eGFR_BASE+eGFR_BASE:TIME"),ori.data);