The LIFETEST Procedure

Computer Resources

The data are first read and sorted into strata. If the data are originally sorted by failure time and censoring state, with smaller failure times coming first and event values preceding censored values in cases of ties, the data can be processed by strata without additional sorting. Otherwise, the data are read into memory by strata and sorted.

Memory Requirements

For a given BY group, define the following:

$\displaystyle  N  $
$\displaystyle  $
$\displaystyle  \mbox{the total number of observations}  $
$\displaystyle  V  $
$\displaystyle  $
$\displaystyle  \mbox{the number of STRATA variables}  $
$\displaystyle  C  $
$\displaystyle  $
$\displaystyle  \mbox{the number of covariates listed in the TEST statement}  $
$\displaystyle  L  $
$\displaystyle  $
$\displaystyle  \mbox{total length of the ID variables in bytes}  $
$\displaystyle  S  $
$\displaystyle  $
$\displaystyle  \mbox{number of strata}  $
$\displaystyle  n  $
$\displaystyle  $
$\displaystyle  \mbox{maximum number of observations within strata}  $
$\displaystyle  b  $
$\displaystyle  $
$\displaystyle  12 + 8C + L  $
$\displaystyle  m1  $
$\displaystyle  $
$\displaystyle  (112 + 16V) \times S  $
$\displaystyle  m2  $
$\displaystyle  $
$\displaystyle  50 \times b \times S  $
$\displaystyle  m3  $
$\displaystyle  $
$\displaystyle  (50 + n) \times (b + 4)  $
$\displaystyle  m4  $
$\displaystyle  $
$\displaystyle  8(C + 4)^2  $
$\displaystyle  m5  $
$\displaystyle  $
$\displaystyle  20N + 8S \times (S + 4)  $

The memory, in bytes, required to process the BY group is at least

\[  m1 + \max (m2,m3) + m4  \]

The test of equality of survival functions across strata requires additional memory (m5 bytes). However, if this additional memory is not available, PROC LIFETEST skips the test for equality of survival functions and finishes the other computations. Additional memory is required for the PLOTS= option. Temporary storage of 16n bytes is required to store the product-limit estimates for plotting.