Learn R Programming

mets (version 1.2.3.1)

gof.phreg: GOF for Cox PH regression

Description

Cumulative score process residuals for Cox PH regression p-values based on Lin, Wei, Ying resampling.

Usage

# S3 method for phreg
gof(object, n.sim = 1000, silent = 1, ...)

Arguments

object

is phreg object

n.sim

number of simulations for score processes

silent

to show timing estimate will be produced for longer jobs

...

Additional arguments to lower level funtions

Examples

Run this code
# NOT RUN {
data(TRACE)

m1 <- phreg(Surv(time,status==9)~vf+chf+diabetes,data=TRACE) 
gg <- gof(m1)
par(mfrow=c(1,3))
plot(gg)

m1 <- phreg(Surv(time,status==9)~strata(vf)+chf+diabetes,data=TRACE) 
gg <- gof(m1)
# }

Run the code above in your browser using DataLab