Customizing the Kaplan-Meier Survival Plot


Changing the Line Thickness

The following steps modify the line thickness for the step functions in the survival plot:

%ProvideSurvivalMacros

%let StepOpts = lineattrs=(thickness=2.5);

%CompileSurvivalTemplates

proc lifetest data=sashelp.BMT plots=survival(cb=hw test);
   time T * Status(0);
   strata Group;
run;

The results are displayed in FigureĀ 23.20.

Figure 23.20: Changing Line Thickness

Changing Line Thickness


By default, the StepOpts macro variable is null.