FUNCTIONPLOT Subcommand (SURVREG AFT command)

FUNCTIONPLOT is an optional subcommand to control the function plots. It is not specified by default. If specified, it must be followed by one of SURVIVAL, HAZARD, or DENSITY. Multiple /FUNCTIONPLOT subcommands are allowed.

SURVIVAL
An optional keyword to plot the survival functions. It is not specified by default which suppresses the plot. If specified, the plot will be created.
HAZARD
An optional keyword to plot the hazard functions. It is not specified by default which sup\u0002presses the plot. If specified, the plot will be created.
DENSITY
An optional keyword to plot the density functions. It is not specified by default which suppresses the plot. If specified, the plot will be created.
POINTS
An optional keyword to specify the number of function points. If specified, it must be followed by a single integer specified within parentheses which belongs to (1, 200]. The default setting is 100.
PATTERN
An optional keyword to specify the user-supplied values and assign them to the predictors. If not specified, the designated plots will be created at the mean of each covariate in effect and the category frequency of each factor in effect. If specified, the designated plots will be created based on the pattern’s setting. If specified, at least one variable must be specified within parentheses and assigned a single user-supplied value. In the presence of any duplicated variables, the one specified first would be recognized and the rest would be ignored. A valid variable must be contained in a model effect. For a factor, the user-supplied string values must be within a pair of single quotes but not for numeric values. For a covariate, the user-supplied value must be numeric. Omission of a variable in effect indicates that the category frequency and the mean would be used by default for the factor and the covariate, respectively. If an invalid value is assigned to a variable, the pattern requested will not be plotted.
PLOTBY
An optional keyword to specify a categorical variable by which the line plots will be drawn. The keyword is suppressed by default. If specified, it must be followed by a single variable specified within parentheses. The variable must be contained in the factors specified after SURVREG AFT BY. Note that a variable cannot be specified for both PLOTBY and PATTERN under the same /FUNCTIONPLOT.
MAX_CATEGORIES
An optional keyword to specify the maximum number of the lines in a chart if PLOTBY is in effect. If specified, it must be followed by a single positive integer specified within parentheses. The default setting is 10. The process will be ignored if PLOTBY is not specified.