Description Usage Arguments Value References Examples
This function can be used to calculated cumulative incidence estimates for survival data with competing risks. Confidence intervals can be specified for a given level.
1 2 3 |
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 be 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) |
times |
timepoint(s) for which cumulative incidence estimates and confidence intervals are desired |
print_event |
identifies which event codes should be presented in the results. "all" can be used to request all event types |
print_var |
logical indicator for whether or not the variance should be listed in the results |
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. |
conf.level |
the confidence level for confidence intervals. default is 0.95 |
digits |
number of decimal places that the results should be rounded to |
returns a list containing
test |
resulting test statistics and p-values |
time1 |
cumulative incidence estimates and ci's for the resquested time |
... |
... |
timeN |
estimates for final time point |
Scrucca L., Santucci A., Aversa F. (2007) Competing risks analysis using
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.