The GEE Procedure

Example 44.1 Comparison of the Marginal and Random Effect Models for Binary Data

(View the complete code for this example.)

A clinical trial (Stokes, Davis, and Koch 2012) was conducted to compare two treatments for a respiratory illness. Patients in each of two centers were randomly assigned to two groups: one group received the active treatment and one group received a placebo.

During treatment, respiratory status was determined for each of four visits and is represented by the variable Outcome (coded here as 0 = poor, 1 = good). The variables Center, Treatment, Sex, and Baseline (baseline respiratory status) are classification variables that have two levels. The variable Age (age at time of entry into the study) is a continuous variable.

All 111 patients completed the study. That is, there are no missing data for responses or covariates. The following statements create the data set Resp:

data Resp;
   input Center ID Treatment $ Sex $ Age Baseline Visit1-Visit4;
   datalines;
1  1 P M 46 0 0 0 0 0
1  2 P M 28 0 0 0 0 0
1  3 A M 23 1 1 1 1 1
1  4 P M 44 1 1 1 1 0
1  5 P F 13 1 1 1 1 1
1  6 A M 34 0 0 0 0 0

   ... more lines ...   

2 51 A M 43 1 1 1 1 0
2 52 A F 39 0 1 1 1 1
2 53 A M 68 0 1 1 1 1
2 54 A F 63 1 1 1 1 1
2 55 A M 31 1 1 1 1 1
;
data Resp;
   set Resp;
   Visit=1;  Outcome=Visit1;  output;
   Visit=2;  Outcome=Visit2;  output;
   Visit=3;  Outcome=Visit3;  output;
   Visit=4;  Outcome=Visit4;  output;
run;

Suppose represents the respiratory status of patient i at the jth visit, , and represents the mean of the respiratory status. Logistic regression is commonly used to analyze binary response data. You can use the variance function for the binomial distribution, , and the logit link function, . The model for the mean is , where is a vector of regression parameters to be estimated.

The following SAS statements perform the GEE model fit:

proc gee data=Resp descend;
   class ID Treatment Center Sex Baseline;
   model Outcome=Treatment Center Sex Age Baseline /
         dist=bin link=logit;
   repeated subject=ID(Center) / corr=exch corrw;
run;

Both the MODEL statement and the REPEATED statement are required.

In the MODEL statement, you use the DIST=BIN and LINK=LOGIT options to specify a logistic regression, and you specify Outcome as the response variable and Treatment, Center, Sex, Age, and Baseline as the explanatory variables. The DESCEND option in the PROC GEE statement requests that the probability that Outcome = 1 be modeled. If the DESCEND option had not been specified, the probability that Outcome = 0 would be modeled by default.

You use the REPEATED statement to specify the subject and the correlation structure of the responses. The SUBJECT=ID(CENTER) option specifies that the observations in any single cluster are uniquely identified by Center and ID. An equivalent specification is SUBJECT=ID*CENTER. Because the same ID values are used in each center, one of these specifications is needed. If ID values were unique across all centers, SUBJECT=ID could be specified. The option TYPE=EXCH specifies the exchangeable working correlation structure.

The "Model Information" table displayed in Output 44.1.1 provides information about the specified logistic regression model and the input data set.

Output 44.1.1: Model Information

The GEE Procedure

Model Information
Data SetWORK.RESP
DistributionBinomial
Link FunctionLogit
Dependent VariableOutcome


General information about the GEE analysis is displayed in Output 44.1.2, and model fit criteria for the model are displayed in Output 44.1.3.

Output 44.1.2: Model Fitting Information

GEE Model Information
Correlation StructureExchangeable
Subject EffectID(Center) (111 levels)
Number of Clusters111
Correlation Matrix Dimension4
Maximum Cluster Size4
Minimum Cluster Size4


Output 44.1.3: Model Fitting Information

GEE Fit Criteria
QIC512.5723
QICu499.4873


The results of GEE model fitting are displayed in Output 44.1.4. If you specify no other options, the standard errors, confidence intervals, Z scores, and p-values are based on empirical standard error estimates. You can specify the MODELSE option in the REPEATED statement to create a table that is based on model-based standard error estimates.

Output 44.1.4: Results of Model Fitting

Parameter Estimates for Response Model
with Empirical Standard Error Estimates
Parameter EstimateStandard
Error
95% Confidence LimitsZPr > |Z|
Intercept 1.63910.52470.61072.66753.120.0018
TreatmentA1.26540.34670.58591.94483.650.0003
TreatmentP0.00000.00000.00000.0000..
Center1-0.64950.3532-1.34180.0428-1.840.0660
Center20.00000.00000.00000.0000..
SexF0.13680.4402-0.72610.99960.310.7560
SexM0.00000.00000.00000.0000..
Age -0.01880.0130-0.04420.0067-1.450.1480
Baseline0-1.84570.3460-2.5238-1.1676-5.33<.0001
Baseline10.00000.00000.00000.0000..


Treatment and Baseline appear to be strongly influential, and Center might be marginally significant.

For comparison, a generalized linear mixed model is fitted to the data set to obtain subject-specific effects. Specifically, consider the logistic regression model,

where the random effect is normally distributed with zero mean and variance, .

The following statements use the GLIMMIX procedure to fit a generalized linear mixed model:

proc glimmix data=Resp;
   class ID Treatment Center Sex Baseline;
   model Outcome (desc)=Treatment Center Sex Age Baseline /
         dist=binary solution;
   random ID(Center);
run;

Output 44.1.5 displays the parameter estimates for the fixed effects in the generalized linear mixed model.

Output 44.1.5: Parameter Estimates

The GLIMMIX Procedure

Solutions for Fixed Effects
EffectTreatmentSexCenterBaselineEstimateStandard
Error
DFt ValuePr > |t|
Intercept    1.79360.62921052.850.0053
TreatmentA   1.47580.38983333.790.0002
TreatmentP   0....
Center  1 -0.72010.4051105-1.780.0784
Center  2 0....
Sex F  0.17320.50343330.340.7310
Sex M  0....
Age    -0.020110.01507333-1.330.1831
Baseline   0-2.13430.3971333-5.38<.0001
Baseline   10....


From Output 44.1.4 and Output 44.1.5, you can see that the parameter estimates from the marginal model and the mixed-effects model differ. For example, the estimated treatment effects are 1.2654 and 1.4758 from the marginal model and the mixed-effects model, respectively.

The interpretation of the model effects in the marginal and random models differs. For example, the estimated treatment effect from the marginal model indicates that, on average, the odds of a good response for the patients is times higher when they receive the active treatment versus the placebo. The estimated treatment effect from the generalized linear mixed model indicates that an individual patient’s odds of a good response is times higher when the patient receives the active treatment versus the placebo.

The choice of the marginal model or a subject-specific model often depends on the goal of your analysis: whether you are interested in population-averaged effects or subject-specific effects. For more information, see Diggle et al. (2002); Fitzmaurice, Laird, and Ware (2011).