Learn R Programming

MultNonParam (version 1.3.9)

twosamplesurvtests: Two Sample Omnibus Tests of Survival Curves

Description

Returns the Kolmogorov-Smirnov and Anderson-Darling test statistics for two right-censored data sets.

Usage

twosamplesurvtests(times, delta, grp)

Value

A vector of length two, with the Kolmogorov-Smirnov and Anderson-Darling statistics.

Arguments

times

Event and censoring times

delta

Indicator of event (1) or censoring (0).

grp

Variable that divides the population into groups.

Examples

Run this code
twosamplesurvpvs(rexp(20),rbinom(20,1,.5),rbinom(20,1,.5))

Run the code above in your browser using DataLab