Calculates the life-table estimate of the survivor function (D.A.Murray).
|Controls printed output (
||Type of graph to be plotted (
||A scalar defining the width of the intervals or a variate containing the boundaries of the intervals|
||Variate specifying whether the corresponding element of each
||Variate containing frequencies for the elements of
||Factor specifying the different groups for which to estimate life tables|
||Pointer to variates to save the information from each life table|
RLIFETABLE calculates the life-table estimate, or actuarial estimate, of the survivor function. The life-table method requires a fairly large number of observations so that survival times can be grouped into intervals. These are specified using the
INTERVALS option. For equal intervals, you can set
INTERVALS to a scalar to define their width. Alternatively you can set
INTERVALS to a variate containing the lower boundaries of the intervals. The
PLOT option can be used to produce plots of the survivor function (
survivor), estimated hazard function (
hazard) and the probability density function (
PRINT=* to suppress printing of the life table; by default
The observed timepoints (or the timepoints at which censoring took place) are specified using the
TIMES parameter. The
CENSORED parameter specifies a variate containing the value one if the corresponding element of
TIMES is censored or zero if it was not.
CENSORED can be omitted if there was no censoring. If there are several observations (all censored or all uncensored) at a time point, you can specify the time point only once and define the number of observations by specifying a variate of counts using the
FREQUENCY parameter. This is particularly useful if the contents of the
TIMES variate are intended to identify time intervals rather than discrete time points. The
GROUPS parameter can be used to request separate life tables for different groups of data. The
LIFETABLE parameter allows the life table to be saved in a pointer to a set of variates for each of the columns within the table.
The methodology in
RLIFETABLE is based on that described in Chapter 4 of Lee (1992).
The input variates and factors may be restricted identically. The life tables are based only on the units not excluded by the restriction.
Lee, E.T. (1992). Statistical Methods for Survival Data Analysis. Wiley, New York.
Commands for: Survival analysis.
CAPTION 'RLIFETABLE example',\ !t('Survival data for 2418 male patients with angina pectoris',\ '(Lee 1992, page 91).'); STYLE=meta,plain VARIATE [NVALUES=32] Time; VALUES=!((0.5...15.5)2) & Censor; VALUES=!(16(0,1)) & Count; VALUES=!(456,226,152,171,135,125,83,74,51,42,43,34,18,9,6,0,\ 0,39,22,23,24,107,133,102,68,64,45,53,33,27,23,30) RLIFETABLE [INTERVAL=!(0...15)] Time; CENSORED=Censor; FREQUENCY=Count;\ LIFETABLE=Ltab