labelBasedOnCutoff | R Documentation |
Label groups based on a given cutoff
labelBasedOnCutoff(data, cutoff, label = NULL, gte = TRUE)
data |
Numeric: test data |
cutoff |
Numeric: test cutoff |
label |
Character: label to prefix group names |
gte |
Boolean: test using greater than or equal than cutoff
( |
Labelled groups
Other functions to analyse survival:
assignValuePerSubject()
,
getAttributesTime()
,
optimalSurvivalCutoff()
,
plotSurvivalCurves()
,
plotSurvivalPvaluesByCutoff()
,
processSurvTerms()
,
survdiffTerms()
,
survfit.survTerms()
,
testSurvival()
labelBasedOnCutoff(data=c(1, 0, 0, 1, 0, 1), cutoff=0.5)
labelBasedOnCutoff(data=c(1, 0, 0, 1, 0, 1), cutoff=0.5, "Ratio")
# Use "greater than" instead of "greater than or equal to"
labelBasedOnCutoff(data=c(1, 0, 0, 0.5, 0, 1), cutoff=0.5, gte=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.