Description Usage Arguments Value Note See Also Examples
Test the survival difference between groups of subjects
1 | testSurvival(survTerms, ...)
|
survTerms |
|
... |
Arguments passed on to
|
p-value of the survival difference or NA
Instead of raising errors, returns NA
Other functions to analyse survival:
assignValuePerSubject()
,
getAttributesTime()
,
labelBasedOnCutoff()
,
optimalSurvivalCutoff()
,
plotSurvivalCurves()
,
plotSurvivalPvaluesByCutoff()
,
processSurvTerms()
,
survdiffTerms()
,
survfit.survTerms()
1 2 3 4 5 6 7 8 9 10 11 12 13 | require("survival")
data <- aml
timeStart <- "event"
event <- "event"
followup <- "time"
data$event <- NA
data$event[aml$status == 1] <- aml$time[aml$status == 1]
censoring <- "right"
formulaStr <- "x"
survTerms <- processSurvTerms(data, censoring=censoring, event=event,
timeStart=timeStart, followup=followup,
formulaStr=formulaStr)
testSurvival(survTerms)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.