pred2.crr: Predict Cumulative Incidence Rate

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Predict Cumulative Incidence Rate

Usage

1
pred2.crr(f.crr, lp, time)

Arguments

f.crr

a saved competing risks regression model created by function crr.fit

lp

a scalar being the sum of linear predictors for a single subject.

time

expected time point, at which cumulative incidence rate will be assessed.

Details

Calculate the predicted cumulative incidence rate based on a saved competing risks regression model. The cumulative incidence is adjusted for other competing causes rather than the event of interest.

Value

Return the predicted cumulative incidence rate.

Author(s)

Michael Kattan, Ph.D, Changhong Yu
Department of Quantitative Health Sciences
Cleveland Clinic

See Also

predict.crr crr.fit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(prostate.dat)
library(Hmisc,TRUE)
library(rms,TRUE)
dd <- datadist(prostate.dat)
options( datadist = "dd")
f.cph <- cph(formula = Surv(TIME_EVENT, EVENT_DOD == 1 ) ~ rcs(AGE,3) +
    CLIN_STG + rcs(PSA, 3),
    data = prostate.dat, x = TRUE, y = TRUE, surv = TRUE)
f.crr <- crr.fit(fit = f.cph, cencode = 0, failcode = 1)

# Estimate cumulative incidence rate by 6 year
QHScrnomo:::pred2.crr(prostate.crr, lp = 0.8, time = 60)

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