View source: R/twosamplesurvtests.R
twosamplesurvtests | R Documentation |
Returns the Kolmogorov-Smirnov and Anderson-Darling test statistics for two right-censored data sets.
twosamplesurvtests(times, delta, grp)
times |
Event and censoring times |
delta |
Indicator of event (1) or censoring (0). |
grp |
Variable that divides the population into groups. |
A vector of length two, with the Kolmogorov-Smirnov and Anderson-Darling statistics.
twosamplesurvpvs(rexp(20),rbinom(20,1,.5),rbinom(20,1,.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.