This, and related routines, are front ends to routines in the
survival
package. Since the survival routines can not handle
left-censored data, these routines transparently handle ``flipping" input
data and resultant calculations.
This function shares the same arguments as survdiff
. The
most important of which is rho
which controls the type of test.
With rho = 0
this is the log-rank or Mantel-Haenszel test, and with
rho = 1
it is equivalent to the Peto & Peto modification of the
Gehan-Wilcoxon test. The default is rho = 1
, or the Peto & Peto
test. This is the most appropriate for left-censored log-normal data.
For the formula interface: if the right hand side of the formula consists
only of an offset term, then a one sample test is done. To cause missing
values in the predictors to be treated as a separate group, rather than
being omitted, use the factor
function with its exclude
argument.