powered by
Returns the Kolmogorov-Smirnov and Anderson-Darling test statistics for two right-censored data sets.
twosamplesurvtests(times, delta, grp)
A vector of length two, with the Kolmogorov-Smirnov and Anderson-Darling statistics.
Event and censoring times
Indicator of event (1) or censoring (0).
Variable that divides the population into groups.
twosamplesurvpvs(rexp(20),rbinom(20,1,.5),rbinom(20,1,.5))
Run the code above in your browser using DataLab