You can select one of the following three types of graphics in PROC LIFETEST: ODS, traditional, and line printer. ODS Graphics is the preferred method of creating graphs, superseding the other two.
When ODS Graphics is enabled, you can use the PLOTS= option in the PROC LIFETEST statement to create plots by using ODS Graphics. For more information about ODS Graphics options, see the PLOTS= option in the section PROC LIFETEST Statement.
If ODS Graphics is not enabled and you specify the LINEPRINTER option, line printer plots are produced; otherwise traditional graphics are produced.
Table 4 summarizes the ways in which you can request graphics.
Table 4: Ways of Displaying Graphics
| PLOTS= | LINEPRINTER | ||
|---|---|---|---|
| Graphics Result | ODS Graphics | Option Specified? | Option Specified? |
| ODS Graphics | Enabled | Yes | No |
| ODS Graphics survival plot | Enabled | No | No |
| Traditional graphics | Disabled | Yes | No |
| Line printer plot | Enabled | Yes | Yes |
| Line printer plot | Disabled | Yes | Yes |
| No graphics | Disabled | No | No |
| No graphics | Disabled | No | Yes |
| No graphics | Enabled | No | Yes |
Table 5 summarizes the options available in the PROC LIFETEST statement for line printer and traditional graphics.
Table 5: Line Printer and Traditional Graphics Options Available in the PROC LIFETEST Statement
| Option | Description |
|---|---|
| Line Printer Plots | |
| FORMCHAR(1,2,7,9)= | Defines the characters to be used for line printer plot axes |
| LINEPRINTER | Specifies that plots be produced by a line printer |
| MAXTIME= | Specifies the maximum time value for plotting |
| NOCENSPLOT | Suppresses the plot of censored observations |
| PLOTS= | Specifies the plots to display |
| Traditional Graphics | |
| ANNOTATE= | Specifies an Annotate data set that adds features to plots |
| CENSOREDSYMBOL= | Defines the symbol to be used for censored observations in plots |
| DESCRIPTION= | Specifies the string that appears in the description field of the PROC GREPLAY master menu for the plots |
| EVENTSYMBOL= | Specifies the symbol to be used for event observations in plots |
| GOUT= | Specifies the graphics catalog name for saving graphics output |
| LANNOTATE= | Specifies an input data set that contains variables for local annotation |
| MAXTIME= | Specifies the maximum time value for plotting |
| PLOTS= | Specifies the plots to display |
The following options are used to produce line printer and traditional graphics:
Line Printer PLOTS= Option
Traditional Graphics PLOTS= Option