anova.cmprsk: anova table for competing risks regression

Description Usage Arguments Details Value Examples

View source: R/anova.cmprsk.R

Description

generate anova table for crr

Usage

1
2
## S3 method for class 'cmprsk'
anova(object, ...)

Arguments

object

a competing risks regression model object built from funciton crr.fit

Details

generate anova table for competing risks regression model

Value

anova table in matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(prostate.dat)
dd <- datadist(prostate.dat)
options(datadist = "dd")
prostate.f <- cph(Surv(TIME_EVENT,EVENT_DOD == 1) ~ TX  + rcs(PSA,3) +
           BX_GLSN_CAT +  CLIN_STG + rcs(AGE,3) +
           RACE_AA, data = prostate.dat,
           x = TRUE, y= TRUE, surv=TRUE,time.inc = 144)
prostate.crr <- crr.fit(prostate.f,cencode = 0,failcode = 1)
## anova test
anova(prostate.crr)

jixccf/QHScrnomo documentation built on Dec. 21, 2021, 12:08 a.m.