test_cutoff | R Documentation |
Tests for the differences in survival for observations
stratified by the given variable cutoff. The testing ia accomplished by
the survdiff
function.
test_cutoff(data, time, event, variable, cutoff, ...)
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. |
cutoff |
the cutoff value. |
... |
additional arguments passed to |
a data frame with the cutoff value, chi-squared test statistic, degrees of freedom, p value and n numbers in the low and high strata.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.