Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gofG.phreg

Stratified baseline graphical GOF test for Cox covariates in PH regression


Description

Looks 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

Usage

gofG.phreg(x, sim = 0, silent = 1, lm = TRUE, ...)

Arguments

x

phreg object

sim

to simulate som variation from cox model to put on graph

silent

to keep it absolutely silent

lm

addd line to plot, regressing the cumulatives on each other

...

Additional arguments to lower level funtions

Author(s)

Thomas Scheike and Klaus K. Holst

Examples

data(TRACE)

m1 <- phreg(Surv(time,status==9)~strata(vf)+chf+wmi,data=TRACE) 
m2 <- phreg(Surv(time,status==9)~vf+strata(chf)+wmi,data=TRACE) 
par(mfrow=c(2,2))

gofG.phreg(m1)
gofG.phreg(m2)

bplot(m1,log="y")
bplot(m2,log="y")

mets

Analysis of Multivariate Event Times

v1.2.8.1
GPL (>= 2)
Authors
Klaus K. Holst [aut, cre], Thomas Scheike [aut]
Initial release
2020-09-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.