get_survdiff | R Documentation |
This function compares survival curves as modeled with do_kpm()
.
It outputs a contingency table and a Chisq measure of difference.
get_survdiff(kds, cond, test_type)
kds |
data set of a survival model such as |
cond |
character of experimental condition variable in the data |
test_type |
numeric (0 or 1) parameter that controls the type of test (0 means rho = 0; log-rank, 1 means rho = 1; Peto & Peto Wilcox) |
Returns survival test results as called from survival::survdiff()
.
kpm_est <- do_kpm(add_dropout_idx(dropRdemo, 3:54))
get_survdiff(kpm_est$d, "experimental_condition", 0)
get_survdiff(kpm_est$d, "experimental_condition", 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.