
Stratified baseline graphical GOF test for Cox covariates in PH regression
Source:R/gof-phreg.R
gofG.phreg.RdLooks at stratified baseline in Cox model and plots all baselines versus each other to see if lines are straight, with 50 resample versions under the assumptiosn that the stratified Cox is correct
Examples
data(tTRACE)
m1 <- phreg(Surv(time,status==9)~strata(vf)+chf+wmi,data=tTRACE)
m2 <- phreg(Surv(time,status==9)~vf+strata(chf)+wmi,data=tTRACE)
par(mfrow=c(2,2))
gofG.phreg(m1)
#> Warning: number of rows of result is not a multiple of vector length (arg 2)
gofG.phreg(m2)
#> Warning: number of rows of result is not a multiple of vector length (arg 2)
bplot(m1,log="y")
bplot(m2,log="y")