find_cutoff | R Documentation |
Finds the optimal cutoff of a variable corresponding to the
greatest difference in survival. The difference in survival is estimated with
survdiff
.
find_cutoff(data, time, event, variable, min_n = 2, .parallel = FALSE, ...)
data |
a data frame with the survival time, a numeric event index variable and the variable to be cut. |
time |
name of the survival time variables, needs to be numeric. |
event |
name of the binary event variable: 1 is event, 0 no event. |
variable |
name of the variable to be cut, needs to be numeric. |
min_n |
the minimal strata size. |
.parallel |
logical, should the search be run in parallel? |
... |
additional arguments passed to |
In case, more minuma are find, the stratified data table is adjusted accordingly.
an object of the 'survcut'. Contains te optimal cutoff value ('cutoff'), a tibble with the numeric variable of interest and and it's strata and a tibble with the cutoff values, test statistics and p values for the survival differences.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.