Description Usage Arguments Details Value Author(s) See Also Examples
Predict Cumulative Incidence Rate
1 |
f.crr |
a saved competing risks regression model created by function
|
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. |
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.
Return the predicted cumulative incidence rate.
Michael Kattan, Ph.D, Changhong Yu
Department of Quantitative
Health Sciences
Cleveland Clinic
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.