[R] Assessing calibration of Cox model with time-dependent coefficients

2018-01-17 Thread Max Shell
I am trying to find methods for testing and visualizing calibration to Cox models with time-depended coefficients. I have read this nice article . In this paper, we can fit three models: fit0 <- coxph(Surv(futime, status) ~ x1 + x2 + x3, da

[R] Time-dependent coefficients in a Cox model with categorical variants

2018-01-15 Thread Max Shell
Suppose I have a dataset contain three variants, looks like > head(dta) SextumorsizeHistology time status 01.52 12.1000 0 11.81 38.4000 0 . Sex: 1