HI, I am interested in calculating hazard ratio of the stratified groups defined by me.
library(survcomp) binscores <- cut(scores.train,c(-1000,-1,1,1000),c("low","intermediate","high")) dd <- data.frame("surv.time"=OS, "surv.event"= status, "strat"=binscores) km.coxph.plot(formula.s=Surv(surv.time, surv.event) ~ strat) How do I calculate hazard ratio between the groups defined by me as above? Thanks very much, Angel [[alternative HTML version deleted]] ______________________________________________ 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.