The GEE Procedure

Example 44.4 GEE for Binary Data with Logit Link Function

(View the complete code for this example.)

Because the respiratory data in Example 44.1 are binary, you can use the alternating logistic regression (ALR) method and model associations by using the log odds ratios instead of working correlations. This example fits a "fully parameterized cluster" model for the log odds ratio. That is, there is a log odds ratio parameter for each unique pair of responses within clusters, and all clusters are parameterized identically. The following statements fit the same regression model for the mean as in Example 44.1 but use a regression model for the log odds ratios instead of a working correlation. LOGOR=FULLCLUST specifies a fully parameterized log odds ratio model.

proc gee data=Resp descend;
   class ID Treatment Center Sex Baseline;
   model Outcome=Treatment Center Sex Age Baseline / dist=bin;
   repeated  subject=ID(Center) / logor=fullclust;
run;

The results of fitting the model are displayed in Output 44.4.1.

Output 44.4.1: Results of ALR Model Fitting

The GEE Procedure

Parameter Estimates for Response Model
with Empirical Standard Error Estimates
Parameter EstimateStandard
Error
95% Confidence LimitsZPr > |Z|
Intercept 1.60010.51280.59502.60523.120.0018
TreatmentA1.26110.34060.59341.92873.700.0002
TreatmentP0.00000.00000.00000.0000..
Center1-0.62870.3486-1.31190.0545-1.800.0713
Center20.00000.00000.00000.0000..
SexF0.10240.4362-0.75260.95750.230.8144
SexM0.00000.00000.00000.0000..
Age -0.01620.0125-0.04070.0084-1.290.1977
Baseline0-1.89800.3404-2.5652-1.2308-5.58<.0001
Baseline10.00000.00000.00000.0000..
Alpha1 1.61090.48920.65222.56963.290.0010
Alpha2 1.07710.48340.12972.02462.230.0259
Alpha3 1.58750.47350.65942.51553.350.0008
Alpha4 2.12240.50221.13813.10684.23<.0001
Alpha5 1.88180.46860.96342.80014.02<.0001
Alpha6 2.10460.49491.13473.07454.25<.0001


The parameters Alpha1 through Alpha6 estimate the log odds ratio for each unique within-cluster pair. The correspondence between the log odds ratio parameters and within-cluster pairs is displayed in Output 44.4.2.

Output 44.4.2: Log Odds Ratio Parameters

Log Odds Ratio Parameter
Information
ParameterGroup
Alpha1(1, 2)
Alpha2(1, 3)
Alpha3(1, 4)
Alpha4(2, 3)
Alpha5(2, 4)
Alpha6(3, 4)


Model goodness-of-fit criteria are shown in Output 44.4.3.

Output 44.4.3: ALR Model Fit Criteria

GEE Fit Criteria
QIC511.8589
QICu499.6516


The QIC for the ALR model shown in Output 44.4.3 is 511.86, whereas the QIC for the unstructured working correlation model shown in Output 44.1.3 is 512.34, indicating that the ALR model has a slightly better fit.

You can fit the same model by fully specifying the matrix; for the definition of the matrix, see the section Specifying Log Odds Ratio Models. The following statements create a data set that contains the full matrix:

data zin;
   keep id center z1-z6 y1 y2;
   array zin(6) z1-z6;
   set resp;
   by center id;
   if first.id
      then do;
      t = 0;
      do m = 1 to 4;
         do n = m+1 to 4;
            do j = 1 to 6;
               zin(j) = 0;
            end;
            y1 = m;
            y2 = n;
            t + 1;
            zin(t) = 1;
            output;
         end;
      end;
   end;
run;
proc print data=zin (obs=12);
run;

Output 44.4.4 displays the full matrix for the first two clusters. The matrix is identical for all clusters in this example.

Output 44.4.4: Full Matrix Data Set

Obsz1z2z3z4z5z6CenterIDy1y2
11000001112
20100001113
30010001114
40001001123
50000101124
60000011134
71000001212
80100001213
90010001214
100001001223
110000101224
120000011234


The following statements fit the model for fully parameterized clusters by fully specifying the matrix. The results are identical to those shown previously.

proc gee data=Resp descend;
   class ID Treatment Center Sex Baseline;
   model Outcome=Treatment Center Sex Age Baseline / dist=bin;
   repeated  subject=ID(Center) / logor=zfull
                                  zdata=zin
                                  zrow =(z1-z6)
                                  ypair=(y1 y2);
run;