Description Usage Arguments Details Value Author(s) See Also Examples
Calculate Cumulative Incidence
1 | pred.ci(cum, tm1, failcode)
|
cum |
a object from function |
tm1 |
expected failure time |
failcode |
value indicating the event of interest |
Extract cumulative incidence and its variance from a object generated from
function cuminc
.
a data frame with 3 columns.
column 3: |
Group name. |
column 2: |
Cumulative Incidence Probability. |
column 3:
|
Variance |
Michael W. Kattan, Ph.D. and Changhong Yu.
Department of
Quantitative Health Sciences, Cleveland Clinic
1 2 3 4 5 6 7 8 | data(prostate.dat) # get demo data set
library(cmprsk)
cum <- cuminc(prostate.dat$TIME_EVENT,prostate.dat$EVENT_DOD,
cencode = 0)
# calculate the expected cumulative incidence by 5 year for death from
# prostate cancer
# Here, code for cause A is 'DOA'.
pred.ci(cum,60,failcode = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.