Description Usage Arguments Value Author(s) References See Also Examples
Estimate cumulative incidence functions from competing risks data and test equality across groups
1 2 
ftime 
failure time variable 
fstatus 
variable with distinct codes for different causes of failure and also a distinct code for censored observations 
group 
estimates will calculated within groups given by distinct values of this variable. Tests will compare these groups. If missing then treated as all one group (no test statistics) 
strata 
stratification variable. Has no effect on estimates. Tests will be stratified on this variable. (all data in 1 stratum, if missing) 
rho 
Power of the weight function used in the tests. 
cencode 
value of fstatus variable which indicates the failure time is censored. 
subset 
a logical vector specifying a subset of cases to include in the analysis 
na.action 
a function specifying the action to take for any cases missing any of ftime, fstatus, group, strata, or subset. 
A list with components giving the subdistribution estimates for each
cause in each group, and a component Tests
giving the test
statistics and pvalues for comparing the subdistribution for each cause
across groups (if the
number of groups is >1). The components giving the estimates
have names that are a combination
of the group name and the cause code.
These components are also lists, with components

the times where the estimates are calculated 

the estimated subdistribution functions. These are step functions (all corners of the steps given), so they can be plotted using ordinary lines() commands. Estimates at particular times can be located using the timepoints() function. 

the estimated variance of the estimates, which are estimates of the asymptotic variance of Aalen (1978). 
Robert Gray
Gray RJ (1988) A class of Ksample tests for comparing the cumulative incidence of a competing risk, ANNALS OF STATISTICS, 16:11411154.
Kalbfleisch and Prentice (1980) THE ANALYSIS OF FAILURE TIME DATA, p 1689.
Aalen, O. (1978) Nonparametric estimation of partial transition probabilities in multiple decrement models, ANNALS OF STATISTICS, 6:534545.
plot.cuminc
timepoints
print.cuminc
1 2 3 4 5 6 7 8 
Loading required package: survival
Tests:
stat pv df
1 0.1110522 0.9459873 2
2 0.1344095 0.9350037 2
Estimates and Variances:
$est
1 2 3 4
a 1 0.1997374 0.3337599 0.4082169 0.4082169
b 1 0.2582589 0.3116745 0.3116745 0.3116745
c 1 0.2194354 0.2813451 0.2813451 0.2813451
a 2 0.2641725 0.4428692 0.4428692 0.4428692
b 2 0.2669364 0.4479557 0.5280790 0.6082023
c 2 0.2471892 0.4400615 0.4400615 0.4400615
$var
1 2 3 4
a 1 0.005842447 0.009576915 0.013764577 0.013764577
b 1 0.007508487 0.009432554 0.009432554 0.009432554
c 1 0.006644662 0.009550507 0.009550507 0.009550507
a 2 0.008127032 0.011168223 0.011168223 0.011168223
b 2 0.008030980 0.014868553 0.016688860 0.016481796
c 2 0.006941955 0.016574813 0.016574813 0.016574813
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.