The LIFETEST Procedure

Example 71.3 Life-Table Estimates for Males with Angina Pectoris

(View the complete code for this example.)

The data in this example come from Lee (1992, p. 91) and represent the survival rates of males with angina pectoris. Survival time is measured as years from the time of diagnosis. In the following DATA step, the data are read as number of events and number of withdrawals in each one-year time interval for 16 intervals. Three variables are constructed from the data: Years (an artificial time variable with values that are the midpoints of the time intervals), Censored (a censoring indicator variable with the value 1 indicating censored observations and the value 0 indicating event observations), and Freq (the frequency variable). Two observations are created for each interval, one representing the event observations and the other representing the censored observations.

title 'Survival of Males with Angina Pectoris';
data Males;
   keep Freq Years Censored;
   retain Years -.5;
   input fail withdraw @@;
   Years + 1;
   Censored=0;
   Freq=fail;
   output;
   Censored=1;
   Freq=withdraw;
   output;
   datalines;
456   0 226  39 152  22 171  23 135 24 125 107
 83 133  74 102  51  68  42  64  43 45  34  53
 18  33   9  27   6  23   0  30
;

In the following statements, the ODS GRAPHICS ON specification enables ODS Graphics. PROC LIFETEST is invoked to compute the various life-table survival estimates, the median residual time, and their standard errors. The life-table method of computing estimates is requested by specifying METHOD=LT. The intervals are specified by the INTERVAL= option. Graphical displays of the life-table survivor function estimate, negative log of the estimate, log of negative log of the estimate, estimated density function, and estimated hazard function are requested by the PLOTS= option. No tests for homogeneity are carried out because the data are not stratified.

ods graphics on;
proc lifetest data=Males  method=lt intervals=(0 to 15 by 1)
              plots=(s,ls,lls,h,p);
   time Years*Censored(1);
   freq Freq;
run;
ods graphics off;

Results of the life-table estimation are shown in Output 71.3.1. The five-year survival rate is 0.5193 with a standard error of 0.0103. The estimated median residual lifetime, which is 5.33 years initially, reaches a maximum of 6.34 years at the beginning of the second year and decreases gradually to a value lower than the initial 5.33 years at the beginning of the seventh year.

Output 71.3.1: Life-Table Survivor Function Estimate

Survival of Males with Angina Pectoris

The LIFETEST Procedure

Life Table Survival Estimates
IntervalNumber
Failed
Number
Censored
Effective
Sample
Size
Conditional Probability
of Failure
Conditional
Probability
Standard
Error
SurvivalFailureSurvival
Standard
Error
Median
Residual
Lifetime
Median
Standard
Error
Evaluated at the Midpoint of the Interval
[Lower,Upper)PDFPDF
Standard
Error
HazardHazard
Standard
Error
0145602418.00.18860.007961.0000005.33130.17490.18860.007960.2082190.009698
12226391942.50.11630.007280.81140.18860.007966.24990.20010.09440.005980.1235310.008201
23152221686.00.09020.006980.71700.28300.009186.34320.23610.06460.005070.094410.007649
34171231511.50.11310.008150.65240.34760.009736.22620.23610.07380.005430.1199160.009154
45135241317.00.10250.008360.57860.42140.01016.21850.18530.05930.004950.1080430.009285
561251071116.50.11200.009440.51930.48070.01035.90770.18060.05810.005030.1185960.010589
6783133871.50.09520.009940.46110.53890.01045.59620.18550.04390.004690.10.010963
7874102671.00.11030.01210.41720.58280.01055.16710.27130.04600.005180.1167190.013545
895168512.00.09960.01320.37120.62880.01064.94210.27630.03700.005020.104830.014659
9104264395.00.10630.01550.33420.66580.01074.82580.41410.03550.005310.1122990.017301
10114345298.50.14410.02030.29870.70130.01094.68880.41830.04300.006270.1552350.023602
11123453206.50.16460.02580.25570.74430.0111..0.04210.006850.179420.030646
12131833129.50.13900.03040.21360.78640.0114..0.02970.006680.1493780.03511
131492781.50.11040.03470.18390.81610.0118..0.02030.006510.1168830.038894
141562347.50.12630.04820.16360.83640.0123..0.02070.008040.1348310.054919
15.03015.0000.14290.85710.0133......


The breakdown of event and censored observations in the data is shown in Output 71.3.2. Note that 32.8% of the patients have withdrawn from the study.

Output 71.3.2: Summary of Censored and Event Observations

Summary of the Number of Censored and
Uncensored Values
TotalFailedCensored Percent
Censored
2418162579332.80

Note:2 observations with invalid time, censoring, or frequency values were deleted.



Output 71.3.3 displays the graph of the life-table survivor function estimate. The median survival time, read from the survivor function curve, is 5.33 years, and the 25th and 75th percentiles are 1.04 and 11.13 years, respectively.

Output 71.3.3: Life-Table Survivor Function Estimate

Life-Table Survivor Function Estimate


An exponential model might be appropriate for the survival of these male patients with angina pectoris since the curve of the negative log of the survivor function estimate versus the survival time (Output 71.3.4) approximates a straight line through the origin. Note that the graph of the log of the negative log of the survivor function estimate versus the log of time (Output 71.3.5) is practically a straight line.

Output 71.3.4: Negative Log of Survivor Function Estimate

Negative Log of Survivor Function Estimate


As discussed in Lee (1992), the graph of the estimated hazard function (Output 71.3.6) shows that the death rate is highest in the first year of diagnosis. From the end of the first year to the end of the tenth year, the death rate remains relatively constant, fluctuating between 0.09 and 0.12. The death rate is generally higher after the tenth year. This could indicate that a patient who has survived the first year has a better chance than a patient who has just been diagnosed. The profile of the median residual lifetimes also supports this interpretation.

Output 71.3.5: Log of Negative Log of Survivor Function Estimate

Log of Negative Log of Survivor Function Estimate


Output 71.3.6: Hazard Function Estimate

Hazard Function Estimate


The density estimate is shown in (Output 71.3.7). Visually, it resembles the density function of an exponential distribution.

Output 71.3.7: Density Function Estimate

Density Function Estimate