The PHREG Procedure

ASSESS Statement

  • ASSESS <VAR=(list)> <PH> </ options>;

The ASSESS statement performs the graphical and numerical methods of Lin, Wei, and Ying (1993) for checking the adequacy of the Cox regression model. The methods are derived from cumulative sums of martingale residuals over follow-up times or covariate values. You can assess the functional form of a covariate or you can check the proportional hazards assumption for each covariate in the Cox model. PROC PHREG uses ODS Graphics for the graphical displays. You must specify at least one of the following options to create an analysis.


specifies the list of explanatory variables for which their functional forms are assessed. For each variable on the list, the observed cumulative martingale residuals are plotted against the values of the explanatory variable along with 20 (or n if NPATHS=n is specified) simulated residual patterns.


requests the checking of the proportional hazards assumption. For each explanatory variable in the model, the observed score process component is plotted against the follow-up time along with 20 (or n if NPATHS=n is specified) simulated patterns.

The following options can be specified after a slash (/):


specifies the number of simulated residual patterns to be displayed in a cumulative martingale residual plot or a score process plot. The default is n=20.


requests that a plot with four panels, each containing the observed cumulative martingale residuals and two simulated residual patterns, be created.


requests that the Kolmogorov-type supremum test be computed on 1,000 simulated patterns or on n simulated patterns if n is specified.


specifies an integer seed for the random number generator used in creating simulated realizations for plots and for the Kolmogorov-type supremum tests. Specifying a seed enables you to reproduce identical graphs and p-values for the model assessments from the same PHREG specification. If the SEED= option is not specified, or if you specify a nonpositive seed, a random seed is derived from the time of day.