I'm estimating a cause-specific hazard function using the coxph() function in R. This the first time I've run such an estimation. In performing model diagnostics, I used cox.zph() and found that the GLOBAL was significant at p == 0.0010 and many of my individual covariates (categorical and continuous) were also significant at p < 0.05. I inspected the residuals using the plot() function on the object created by cox.zph() to visualize the residuals. My main question is: OK - what now?
A little bit about the model. I'm estimating in a competing risks framework using health care data where there are several forms of discharge, plus in-hospital death. I've separately run a crr() regression to estimate the impact of the covariates on relative incidence of the different discharge types. In the current step, I'm hoping to learn the effect of the covariates on the cause-specific hazard (instantaneous rate of discharge) for each discharge type.
survivalplots for cox.zph objects print any red lines, and theggplotcoxzphfunction from thesurvminerpackage (which does show individual values in red) has a major bug, at least as of earlier this year, that makes its plots pretty useless. What's important is the flatness of the curve. Yourcox.zphp-values do suggest that there is something important that you shouldn't ignore. How many cases/events do you have? – EdM May 09 '22 at 20:54abline(h = 0, col = 2)command below the plot command in my posting. This was a technique demonstrated in the Stats Lecture series that I linked to in this post. I am familiar with the bug inggplotcoxzphfrom earlier posts in this forum. I have 783 total observations in my data, 254 cases for this particular event. – Dan May 10 '22 at 13:59