Customizing the Kaplan-Meier Survival Plot


Dynamic Variables That Are Automatically Declared

The primary dynamic variables are as follows:

_ByFootNote_

is a binary variable that, when true, displays the BY-group BY line as a footnote.

_ByLine_

is a character variable that provides the BY-group BY line.

_ByTitle_

is a binary variable that, when true, displays the BY-group BY line as a title.

ClassAtRisk

is a character variable that names the data object column that contains the classification (stratification) values.

GroupName

is a character variable that contains the stratification legend title.

LabelCL

is a character variable that contains the label for the confidence limits legend entry (including the percent sign).

LabelEP

is a character variable that contains the label for the equal-precision band legend entry (including the percent sign).

LabelHW

is a character variable that contains the label for the Hall-Wellner band legend entry (including the percent sign).

MaxTime

is a numeric variable that contains the maximum value to display on the X axis.

Method

is a character variable that contains the method for the plot title.

NStrata

is an integer variable that contains the number of strata.

PValue

is a numeric variable that contains the p-value for the homogeneity test.

PlotAtRisk

is a binary variable that, when true, is used to display the at-risk table.

PlotCensored

is a binary variable that, when true, displays the censored values on the step functions.

PlotCL

is a binary variable that, when true, displays the pointwise confidence limits.

PlotEP

is a binary variable that, when true, displays the equal-precision band.

PlotHW

is a binary variable that, when true, displays the Hall-Wellner confidence band.

PlotTest

is a binary variable that, when true, displays the p-value for the homogeneity test.

RowWeights

is a pair of relative heights of the plot and the external at-risk table.

SecondTitle

is a character variable that provides the second title line.

StratumID

is a character variable that provides the value of the stratification variable for the single stratum case.

TestName

is a character variable that provides the name of the homogeneity test (for example, 'logrank').

Transparency

is a numeric variable that provides the transparency for the confidence bands in the multiple strata case.

XName

is a character variable that contains a short label for the X axis, which might be used in place of the ordinary X-axis label when the ordinary label is long or the plot is small.

XtickValFitPol

is a character variable that contains the option for handling dense tick values on the X axis.

XtickVals

is a list of X-axis tick values.