predict.cmprsk | R Documentation |
Computes the predicted probability of the event of interest at a specified time point for a competing risks regression model fit by crr.fit
. This function is adapted from predict.crr
.
## S3 method for class 'cmprsk'
predict(object, newdata = NULL, time, lps, ...)
object |
A model fit by |
newdata |
A |
time |
A single time point to calculate the failure probability |
lps |
Should the linear predictor be returned instead of the failure probability? Defaults to |
... |
Additional arguments such as |
A vector of failure probabilities at the specified time point (or linear predictors if lps=TRUE
) with length equal to the number of rows in newdata
Michael W. Kattan, Ph.D. and Changhong Yu.
Department of
Quantitative Health Sciences, Cleveland Clinic
Fine JP and Gray RJ (1999)
A proportional hazards model
for the subdistribution of a competing risk. JASA
94:496-509.
crr.fit
, predict.crr
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)
predict(prostate.crr, time = 60)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.