pred.ci: Calculate Cumulative Incidence

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

View source: R/pred.ci.R

Description

Calculate Cumulative Incidence

Usage

1
pred.ci(cum, tm1, failcode)

Arguments

cum

a object from function cuminc

tm1

expected failure time

failcode

value indicating the event of interest

Details

Extract cumulative incidence and its variance from a object generated from function cuminc.

Value

a data frame with 3 columns.

column 3:

Group name.

column 2:

Cumulative Incidence Probability.

column 3:

Variance

Author(s)

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

See Also

cuminc

Examples

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)

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