powered by
This function compares survival curves as modeled with do_kpm(). It outputs a contingency table and a Chisq measure of difference.
do_kpm()
get_survdiff(kds, cond, test_type)
Returns survival test results as called from survival::survdiff().
survival::survdiff()
data set of a survival model such as do_kpm()
character of experimental condition variable in the data
numeric (0 or 1) parameter that controls the type of test (0 means rho = 0; log-rank, 1 means rho = 1; Peto & Peto Wilcox)
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)
Run the code above in your browser using DataLab