Created
November 10, 2022 13:32
-
-
Save MJacobs1985/c44dd5eadac8bf618f69619c0bcad7be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHassump <- cox.zph(fitSURV) | |
PHassump | |
par(mfrow=c(5,2)) | |
plot(PHassump[1], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for Gender"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[2], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for NRS"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[3], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for Disease Stage"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[4], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for Age"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[5], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for Tumorsite"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[6], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for Non-Opioid"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[7], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for Opioid"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[8], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for Surgery"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[9], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for RT"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[10], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for Opioid_OME"); abline(h=0, lty=2, lwd=1.5, col="red") | |
plot(PHassump[11], xlab="Time", ylab="Residual", main="Schoenfeld residuals (scaled) for meds"); abline(h=0, lty=2, lwd=1.5, col="red") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment