The ICPHREG Procedure

Getting Started: ICPHREG Procedure

(View the complete code for this example.)

This example demonstrates how you can fit a proportional hazards model on an interval-censored data set. By default, PROC ICPHREG uses a piecewise constant baseline hazard to fit the model.

The AIDS data (Larder, Darby, and Richman 1989) consist of observations from 31 patients who were followed up for the development of drug resistance to zidovudine. The following DATA step creates the SAS data set HIV:

data hiv;
   input Left Right Stage Dose CdLow CdHigh;
   if (Left=0) then Left=.;
   if (Right>=26) then Right=.;
   datalines;
0 16 0 0 0 1
15 26 0 0 0 1
12 26 0 0 0 1
17 26 0 0 0 1
13 26 0 0 0 1
0 24 0 0 1 0
6 26 0 1 1 0
0 15 0 1 1 0
14 26 0 1 1 0
12 26 0 1 1 0
13 26 0 1 0 1
12 26 0 1 1 0
12 26 0 1 1 0
0 18 0 1 0 1
0 14 0 1 0 1
0 17 0 1 1 0
0 15 0 1 1 0
3 26 1 0 0 1
4 26 1 0 0 1
1 11 1 0 0 1
13 19 1 0 0 1
0 6 1 0 0 1
0 11 1 1 0 0
6 26 1 1 0 0
0 6 1 1 0 0
2 12 1 1 0 0
1 17 1 1 1 0
0 14 1 1 0 0
0 25 1 1 0 1
2 11 1 1 0 0
0 14 1 1 0 0
;

The data set HIV contains the variables Left and Right, which are the starting time and ending time, both in months since the start of study; the variable Stage, which indicates the stage of disease (early (0) or late (1)); the variable Dose, a binary variable that indicates whether the dose is low (0) or high (1); the variable CdLow, which indicates whether the CD4 lymphocyte count is less than 100; and the variable CdHigh, which indicates that a count greater than or equal to 400 is recorded.

The following statements use PROC ICPHREG to fit a proportional hazards model to these data:

proc icphreg data=hiv;
   class Stage Dose / desc;
   model (Left, Right) = Stage Dose;
run;

The CLASS statement specifies that the variables Stage and Dose are classification variables. The DESC option sets the lower formatted value as the reference level for each CLASS variable. The MODEL statement specifies that the observed intervals are formed by Left and Right.

By default, the preceding statements produce information about the input data and the fitted model, as shown in Figure 65.1.

Figure 65.1: Model and Data Information from the ICPHREG Procedure

The ICPHREG Procedure

Model Information
Data SetWORK.HIV
Left BoundaryLeft
Right BoundaryRight
Baseline HazardPiecewise Constant

Number of Observations Read31
Number of Observations Used31
Right Censored Observations13
Interval Censored Observations5
Left Censored Observations13


Figure 65.1 shows 13 left-censored observations, 13 right-censored observations, and 5 interval-censored observations.

Figure 65.2 displays the "Class Level Information" table, which identifies the levels of the classification variables that are used in the model.

Figure 65.2: CLASS Variables Information from the ICPHREG Procedure

Class Level Information
NameLevelsValues
Stage21 0
Dose21 0


By default, PROC ICPHREG uses a baseline hazard that is partitioned into five disjoint intervals to fit a proportional hazards model. Figure 65.3 displays details about this partition.

Figure 65.3: Interval Partition

Constant Hazard Time Intervals
IntervalHazard
Parameter
[LowerUpper)
05.5Haz1
5.58Haz2
812.5Haz3
12.517Haz4
17InftyHaz5


PROC ICPHREG determines the break points so that each time interval contains approximately an equal number of imputed middle points and boundary values in the input data set after excluding the right-censored observations. For more information about this method, see the section Choosing Break Points. You can supply your own partition by using the INTERVALS= option in the MODEL statement.

The "Fit Statistics" table, shown in Figure 65.4, contains several statistics that summarize how well the model fits the data. These statistics are helpful in judging the adequacy of a model and in comparing it with other models under consideration.

Figure 65.4: Model Fit Statistics from the ICPHREG Procedure

Fit Statistics
-2 Log Likelihood21.813
AIC (Smaller is Better)31.813
AICC (Smaller is Better)34.213
BIC (Smaller is Better)38.983


The table of parameter estimates is displayed in Figure 65.5. The columns display the parameter name, the degrees of freedom that are associated with the parameter, the estimated parameter value, the standard error of the parameter estimate, the confidence limits, the Wald chi-square statistic, and the associated p-value for testing the significance of the parameter. If a parameter has been fixed during the optimization process, or if a column of the Hessian matrix that corresponds to that parameter is found to linearly depend on columns that correspond to proceeding model parameters, PROC ICPHREG assigns zero degrees of freedom to that parameter and displays a value of zero for its standard error.

Figure 65.5: Model Parameter Estimates from the ICPHREG Procedure

Analysis of Maximum Likelihood Parameter Estimates
EffectStageDoseDFEstimateStandard
Error
95% Confidence LimitsChi-SquarePr > ChiSq
Haz1  00.0000     
Haz2  10.01670.02050.00000.0568  
Haz3  00.0000     
Haz4  10.08420.06550.00000.2126  
Haz5  12.5641366.42630.0000720.7464  
Stage1 12.95970.93581.12554.793910.000.0016
Stage0 00.0000     
Dose 111.62290.8410-0.02553.27133.720.0537
Dose 000.0000     


Two types of parameters are present in Figure 65.5: the hazard parameters (Haz1, Haz2, ..., Haz5) and the regression coefficients for the covariates. PROC ICPHREG does not display the chi-square statistic and associated p-value for the hazard parameters.

Two of the hazard parameters are constrained at 0, a sign of overparameterization that results from too many hazard parameters in the model. For more information about how the constraints are constructed, see the section NOPOLISH. You can use fewer break points to fit the model by using the NINTERVAL= option or the INTERVALS= option. For example, the following statements request a model that has exactly two hazard parameters by specifying one break point at 10:

proc icphreg data=hiv ithistory;
   class Stage Dose / desc;
   model (Left, Right) = Stage Dose / basehaz=pch(intervals=(10));
run;

The table of parameter estimates is displayed in Figure 65.6. None of the hazard parameters are constrained.

Figure 65.6: Model Parameter Estimates from the ICPHREG Procedure

The ICPHREG Procedure

Analysis of Maximum Likelihood Parameter Estimates
EffectStageDoseDFEstimateStandard
Error
95% Confidence LimitsChi-SquarePr > ChiSq
Haz1  10.00420.00510.00000.0142  
Haz2  10.05900.03600.00000.1296  
Stage1 12.08100.72980.65063.51148.130.0044
Stage0 00.0000     
Dose 111.09070.6766-0.23542.41672.600.1069
Dose 000.0000     


The ITHISTORY option outputs the iteration history of the fitting algorithm, which is shown in Figure 65.7. This option also produces the gradient and Hessian of the likelihood function at the last evaluation. In Figure 65.7, all values of the gradient are close to zero.

Figure 65.7: Iteration History from the ICPHREG Procedure

Likelihood Optimization Iteration History
IterationEvaluations-2 Log
Likelihood
ChangeMax
Gradient
Parameter ValuesGradient Values
Stage1Dose1Haz1Haz2Stage1Dose1Haz1Haz2
0247.8895.74.9948000.12450.0741-1.88273.639474.99485.0972
11039.1668-8.722747.50720.18160.30120.05590.0848-3.65800.505747.5072-1.3723
2637.6893-1.477532.37960.24530.33470.04400.0944-3.9790-0.288332.3796-1.7277
3335.3576-2.331750.93460.47010.42060.01850.1168-4.6140-2.0073-50.9346-3.9286
4332.5990-2.75866.40370.80390.50750.02000.1003-2.8566-0.70016.40370.3183
5330.1026-2.496494.92261.38000.70320.007850.0839-2.1446-1.3702-94.9226-6.0631
6329.0224-1.080223.83041.76230.85880.007240.0699-0.3881-0.220423.8304-0.6369
7328.8561-0.1663103.72.01151.03760.003840.0622-0.5201-0.4868-103.7-2.6791
8328.7697-0.08631.97942.07401.08580.004180.0593-0.0194-0.0145-1.9794-0.0585
9328.7696-0.000130.003092.07991.08980.004160.0590-0.00170-0.001210.00309-0.00077
10328.7696-3.01E-60.0008032.08091.09060.004160.0590-0.00015-0.00012-0.00080-0.00004
11328.7696-2.5E-86.991E-62.08101.09070.004160.0590-6.99E-6-5.67E-6-6.93E-6-1.38E-7
12228.769606.991E-62.08101.09070.004160.0590-6.99E-6-5.67E-6-6.93E-6-1.38E-7

Last Evaluation of the Negative of the
Gradient
Haz1Haz2Stage1Dose1
-6.93E-6-1.38E-7-6.99E-6-5.67E-6

Last Evaluation of the Negative of the Hessian
 Haz1Haz2Stage1Dose1
Haz11391334906.9605.6626.1
Haz24906.91967.046.421878.7404
Stage1605.646.42185.25542.5003
Dose1626.178.74042.50037.2471


One reason for fitting a proportional hazards model is to evaluate the hazard ratios between various disease groups. You can request customized hazard ratios by using the HAZARDRATIO statement, as follows:

proc icphreg data=hiv;
   class Stage / desc;
   model (Left, Right) = Stage / basehaz=pch(intervals=(10));
   hazardratio Stage;
run;

Figure 65.8 shows the estimated hazard ratio between the values 1 and 0 of the Stage variable and the corresponding confidence limits.

Figure 65.8: Hazard Ratio Estimate between Stage Values 1 and 0

The ICPHREG Procedure

Hazard Ratios for Stage
DescriptionPoint Estimate95% Wald Confidence Limits
Stage 1 vs 05.6241.73418.241


The estimate of 5.624 indicates that patients who have Stage 1 disease tend to have a much higher risk of developing AIDS than those who have Stage 0. However, the confidence limits are wide because of the small sample size.

Last updated: February 13, 2019