:exclamation: This is a read-only mirror of the CRAN R package repository. Greg — Regression Helper Functions. Homepage: http://gforge.se Report bugs for this package: https://github.com/gforge/Greg/issues
Hi, I want to plot the HRs vs. a particular continuous variable, which I think plot HR could give me. However, I am still not very clear about the methods that behind the plotHR function. Based on my understanding the HR should be constant if we are using cox model. But I got curves of HR and I want to know how it works. It would be great if you could explain a little bit.
Thank you.
model <- coxph(Surv(tmb_os_pd1drug_269all_1$Survival_months.y, tmb_os_pd1drug_269all_1$Status.y)~rcs(TMB_log,3),data = tmb_os_pd1drug_269all_1)
plotHR(model, terms=1, se = 'TRUE' ,xlim=c(0,2), ylim=c(-1.5,1),xlab = 'logTMB',main = 'logTMB distribution against Hazard Ratio')
Hi, I want to plot the HRs vs. a particular continuous variable, which I think plot HR could give me. However, I am still not very clear about the methods that behind the plotHR function. Based on my understanding the HR should be constant if we are using cox model. But I got curves of HR and I want to know how it works. It would be great if you could explain a little bit.
Thank you.
model <- coxph(Surv(tmb_os_pd1drug_269all_1$Survival_months.y, tmb_os_pd1drug_269all_1$Status.y)~rcs(TMB_log,3),data = tmb_os_pd1drug_269all_1) plotHR(model, terms=1, se = 'TRUE' ,xlim=c(0,2), ylim=c(-1.5,1),xlab = 'logTMB',main = 'logTMB distribution against Hazard Ratio')