ODS Graphics 
Statistical procedures use ODS Graphics to create graphs as part of their output. ODS Graphics is described in detail in Chapter 21, Statistical Graphics Using ODS.
Before you create graphs, ODS Graphics must be enabled (for example, with the ODS GRAPHICS ON statement). For more information about enabling and disabling ODS Graphics, see the section Enabling and Disabling ODS Graphics in Chapter 21, Statistical Graphics Using ODS.
The overall appearance of graphs is controlled by ODS styles. Styles and other aspects of using ODS Graphics are discussed in the section A Primer on ODS Statistical Graphics in Chapter 21, Statistical Graphics Using ODS.
The survival plot is produced by default; other graphs are produced by using the PLOTS= option in the PROC LIFETEST statement. You can reference every graph produced through ODS Graphics with a name. The names of the graphs that PROC LIFETEST generates are listed in Table 51.6, along with the required keywords for the PLOTS= option.
ODS Graph Name 
Plot Description 
PLOTS=Option 

DensityPlot 
Estimated density for lifetable method 

FailurePlot 
Estimated failure function 

HazardPlot 
Estimated hazard function for lifetable method or smoothed hazard for productlimit, Breslow, or FlemingHarrington method 

LogNegLogSurvivalPlot 
Log of negative log of the estimated survivor function 

NegLogSurvivalPlot 
Negative log of the estimated survivor function 

SurvivalPlot 
Estimated survivor function 

SurvivalPlot 
Estimated survivor function with number of subjects at risk 

SurvivalPlot 
Estimated survivor function with pointwise confidence limits 

SurvivalPlot 
Estimated survivor function with equalprecision band 

SurvivalPlot 
Estimated survivor function with HallWellner band 

SurvivalPlot 
Estimated survivor function with homogeneity test pvalue 
PROC LIFETEST passes a number of summary statistics as dynamic variables to the ODS Graphics for survival plots. Table 51.7 and Table 51.8 list these additional dynamic variables for the KaplanMeier curves and the lifetable curves, respectively. These dynamic variables are not declared in the templates for the survival curves, but you can declare them and use them to enhance the default plots. The names of the dynamic variables depend on the STRATA= suboption of the PLOTS=SURVIVAL option: STRATA=INDIVIDUAL produces a separate plot for each stratum, and STRATA=OVERALL produces one plot with overlaid curves.
STRATA= 
Dynamic 
Description 

OVERLAY 
StrVal 
Label for the th stratum 
NObs 
Number of observations in the th stratum 

NEvent 
Number of events in the th stratum 

Median 
Median survival time of the th stratum 

LowerMedian 
Lower median survival time of the th stratum 

UpperMedian 
Upper median survival time of the th stratum 

PctMedianConfid 
Confidence of the median intervals in percent 

INDIVIDUAL 
NObs 
Number of observations 
NEvent 
Number of events 

Median 
Median survival time 

LowerMedian 
Lower median survival time 

UpperMedian 
Upper median survival time 

PctMedianConfid 
Confidence of the median interval in percent 
STRATA= 
Dynamic 
Description 

OVERLAY 
StrVal 
Label for the th stratum 
NObs 
Number of observations in the th stratum 

NEvent 
Number of events in the th stratum 

INDIVIDUAL 
NObs 
Number of observations 
NEvent 
Number of events 
See the section The Graph Template Language in Chapter 22, ODS Graphics Template Modification, for the general use of dynamic variables. For the use of the particular dynamic variables shown in this section, see the sections Modifying the Layout and Adding a New Inset Table and Displaying Survival Summary Statistics in Chapter 22, ODS Graphics Template Modification.