Overall, Cause Specific, and Competing Survival
Source:R/competingsurvival.h.R
competingsurvival.RdOverall, Cause Specific, and Competing Survival.
Usage
competingsurvival(
data,
explanatory,
overalltime,
outcome,
dod,
dooc,
awd,
awod,
analysistype = "overall",
graystest = TRUE,
subdistribution = TRUE,
timepoints = "12,24,36,60",
confidencelevel = 0.95,
showrisksets = TRUE
)Arguments
- data
The data as a data frame.
- explanatory
.
- overalltime
.
- outcome
.
- dod
.
- dooc
.
- awd
.
- awod
.
- analysistype
.
- graystest
Perform Gray's test to compare cumulative incidence functions between groups
- subdistribution
Use Fine-Gray subdistribution hazard model for competing risks regression
- timepoints
Comma-separated time points (in months) for cumulative incidence estimates
- confidencelevel
Confidence level for hazard ratio confidence intervals
- showrisksets
Display number at risk table below cumulative incidence plot
Value
A results object containing:
results$todo | a html | ||||
results$summary | a html | ||||
results$survivalTable | a table | ||||
results$cuminc | a table | ||||
results$comprisksPlot | an image | ||||
results$interpretation | a html |
Tables can be converted to data frames with asDF or as.data.frame. For example:
results$survivalTable$asDF
as.data.frame(results$survivalTable)