Test the survival difference between groups of subjects
Arguments
- survTerms
survTermsobject: survival terms obtained after runningprocessSurvTerms(see examples)- ...
Arguments passed on to
survival::survdiffsubsetexpression indicating which subset of the rows of data should be used in the fit. This can be a logical vector (which is replicated to have length equal to the number of observations), a numeric vector indicating which observation numbers are to be included (or excluded if negative), or a character vector of row names to be included. All observations are included by default.
na.actiona missing-data filter function. This is applied to the
model.frameafter any subset argument has been used. Default isoptions()$na.action.rhoa scalar parameter that controls the type of test.
timefixprocess times through the
aeqSurvfunction to eliminate potential roundoff issues.
See also
Other functions to analyse survival:
assignValuePerSubject(),
getAttributesTime(),
labelBasedOnCutoff(),
optimalSurvivalCutoff(),
plotSurvivalCurves(),
plotSurvivalPvaluesByCutoff(),
processSurvTerms(),
survdiffTerms(),
survfit.survTerms()
Examples
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)
#> [1] 0.0653