Sorry for a long question. I am in an urgent using R to fit the cox proportional model. My data is a data frame including 100 individuals which are software stress tests. There are time-to-failure and six covariates meaning the system resource (every 4 minutes). Is it possible to use R to fit the Cox model?
I used "*coxph*" to estimated the coefficients for both time-independent and time-dependent covariates. And next I need to calculated the survival and hazard rate for cox model with time-independent and that with time-dependent covariates. I see many people use *survfit.coxph *to get the survival. Could anybody please tell me how is the survival value calculated? For example, what kind of procedure. Any suggestion is a great help! -- View this message in context: http://r.789695.n4.nabble.com/How-does-the-survfit-coxph-calculate-the-survival-value-tp3847179p3847179.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.