The PHSELECT Procedure

Example 16.2 Stratified Analysis

In the getStarted data set that is presented in the section Getting Started: PHSELECT Procedure, suppose the variable C3 represents the gender of the subjects. It is conceivable that males and females belong to different subpopulations and might have different baseline hazard functions. A stratified analysis is conducted by specifying C3 as the stratifying variable in the STRATA statement. The CODE statement requests that a text file named ScoreCode.txt be created. This file contains SAS DATA step code to predict survival probabilities at time points that are specified by the TIMEPOINT= option. By default, PROC PHSELECT uses the estimated quartiles of the KM curve (no covariates) of the training data. The SHOWTIME option produces variables that contain these estimated time points.

proc phselect data=mycas.getStarted;
   class C1 C2;
   model Time*Status(0) = C1 C2 X1-X4;
   strata C3;
   code file='ScoreCode.txt' showtime;
run;

The "Parameter Estimates" table in Output 16.2.1 shows the resulting regression parameter estimates of the stratified analysis.

Output 16.2.1: Parameter Estimates

The PHSELECT Procedure

Parameter Estimates
ParameterDFEstimateStandard
Error
Chi-SquarePr > ChiSq
C1 Critical10.3013140.5123750.34580.5565
C1 High1-1.0306790.3344579.49660.0021
C1 Low1-0.6491790.3420833.60140.0577
C1 Medium00...
C2 010.5198430.4059721.63960.2004
C2 100...
X111.9702900.53494713.56560.0002
X210.7522470.4195893.21420.0730
X310.9599310.6009592.55150.1102
X41-0.1171820.0594063.89100.0485


You can use the DATA step code from the CODE statement to compute direct adjusted survival probabilities by taking the average of individual predicted survival probabilities. The method of direct adjustment controls for possible confounders that result from an imbalance of subject characteristics between groups. This adjustment is especially useful in nonrandomized studies. In the following statements, the DATA step code is applied to the getStarted data set to obtain the predicted survival probabilities for individuals in that data set and the predicted probabilities at each time point are averaged by gender:

data Scores;
   set mycas.getStarted;
   %inc 'ScoreCode.txt';
run;

proc print data=Scores (obs=1);
   var Time_:;
run;

proc means data=Scores mean;
   class C3;
   var S_Time_:;
run;

Output 16.2.2 displays the time points at which the survival probabilities were predicted. These time points, Time_1=7, Time_2=19, and Time_3=54, are the quartiles of the failure times based on the Kaplan-Meier curve. Output 16.2.3 displays the direct adjusted survival probabilities at these quartiles. The predicted survival probability at Time_1 for females is slightly lower than that for males, but at Time_3 the direction is reversed. Also revealed is that the getStarted data set has 76 males but only 24 females.

Output 16.2.2: Quartiles of the Observed Failure Times

ObsTime_1Time_2Time_3
171954


Output 16.2.3: Direct Adjusted Survival Probabilities

The MEANS Procedure

C3N ObsVariableLabelMean
F24
S_Time_1
S_Time_2
S_Time_3
Survival Probability at Time_1
Survival Probability at Time_2
Survival Probability at Time_3
0.7016195
0.3693234
0.2765601
M76
S_Time_1
S_Time_2
S_Time_3
Survival Probability at Time_1
Survival Probability at Time_2
Survival Probability at Time_3
0.7485799
0.4568778
0.2354066


Last updated: December 21, 2018