The GENMOD Procedure

Example 45.6 Log Odds Ratios and the ALR Algorithm

(View the complete code for this example.)

Since the respiratory data in Example 45.5 are binary, you can use the ALR algorithm to model the log odds ratios instead of using working correlations to model associations. In this example, a "fully parameterized cluster" model for the log odds ratio is fit. 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 45.5 but use a regression model for the log odds ratios instead of a working correlation. The LOGOR=FULLCLUST option specifies a fully parameterized log odds ratio model.

proc genmod data=resp descend;
   class id treatment(ref="P") center(ref="1") sex(ref="M")
      baseline(ref="0") / param=ref;
   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 45.6.1 along with a table that shows the correspondence between the log odds ratio parameters and the within-cluster pairs. Model goodness-of-fit criteria are shown in Output 45.6.2. The QIC for the ALR model shown in Output 45.6.2 is 511.86, whereas the QIC for the unstructured working correlation model shown in Output 45.5.4 is 512.34, indicating that the ALR model is a slightly better fit.

Output 45.6.1: Results of Model Fitting

The GENMOD Procedure

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

Analysis Of GEE Parameter Estimates
Empirical Standard Error Estimates
Parameter EstimateStandard
Error
95% Confidence LimitsZPr > |Z|
Intercept -0.92660.4513-1.8111-0.0421-2.050.0400
treatmentA1.26110.34060.59341.92873.700.0002
center20.62870.3486-0.05451.31191.800.0713
sexF0.10240.4362-0.75260.95750.230.8144
age -0.01620.0125-0.04070.0084-1.290.1977
baseline11.89800.34041.23082.56525.58<.0001
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


Output 45.6.2: Model Fit Criteria

GEE Fit Criteria
QIC511.8589
QICu499.6516


You can fit the same model by fully specifying the matrix. The following statements create a data set containing 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 45.6.3 displays the full matrix for the first two clusters. The matrix is identical for all clusters in this example.

Output 45.6.3: 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 genmod data=resp descend;
   class id treatment(ref="P") center(ref="1") sex(ref="M")
      baseline(ref="0") / param=ref;
   model outcome=treatment center sex age baseline / dist=bin;
   repeated  subject=id(center) / logor=zfull
                                  zdata=zin
                                  zrow =(z1-z6)
                                  ypair=(y1 y2);
run;