The GEE Procedure

Example 44.2 Log-Linear Model for Count Data

(View the complete code for this example.)

The following example demonstrates how you can fit a GEE model to count data. The data are analyzed by Diggle, Liang, and Zeger (1994). The response is the number of epileptic seizures, which was measured at the end of each of eight two-week treatment periods over sixteen weeks. The first eight weeks were the baseline period (during which no treatment was given), and the second eight weeks were the treatment period, during which patients received either a placebo or the drug progabide. The question of scientific interest is whether progabide is effective in reducing the rate of epileptic seizures.

The following DATA step creates the data set Seizure:

data Seizure;
   input ID Count Visit  Trt Age Weeks;
   datalines;
104 11 0 0 31 8
104 5 1 0 31 2
104 3 2 0 31 2
104 3 3 0 31 2
104 3 4 0 31 2
106 11 0 0 30 8

   ... more lines ...   

236 12 0 1 37 8
236 1 1 1 37 2
236 4 2 1 37 2
236 3 3 1 37 2
236 2 4 1 37 2
;

The following DATA step creates a log time interval variable for use as an offset and an indicator variable for whether the observation is for a baseline measurement or a visit measurement. Patient 207 is deleted as an outlier, which was done in the Diggle et al. (2002) analysis:

data Seizure;
   set Seizure;
   if ID ne 207;
   if Visit = 0 then do;
      X1=0;
      Ltime = log(8);
   end;
   else do;
      X1=1;
      Ltime=log(2);
   end;
run;

Poisson regression is commonly used to model count data. In this example, the log-linear Poisson model is specified by (the Poisson variance function) and a log link function,

where

number of epileptic seizures in interval j

length of interval j

Because the visits represent repeated measurements, the responses from the same individual are correlated and inferences need to take this into account. The correlations between the counts are modeled as , (exchangeable correlations).

In this model, the regression parameters are interpreted in terms of the log seizure rate that is displayed in Table 44.16.

Table 44.16: Interpretation of Regression Parameters

Treatment

Visit

Placebo

Baseline

 

1–4

Progabide

Baseline

 

1–4


The difference between the log seizure rates in the pretreatment (baseline) period and the treatment periods is for the placebo group and for the progabide group. A value of indicates a reduction in the seizure rate.

The following statements perform the analysis:

proc gee data = Seizure;
   class ID Visit;
   model Count = X1 Trt X1*Trt / dist=poisson link=log offset= Ltime;
   repeated subject = ID / within = Visit type=unstr covb corrw;
run;

In the MODEL statement, Count is the response variable, and X1, Trt, and the interaction X1*Trt are the explanatory variables. You request Poisson regression with the DIST=POISSON and the LINK=LOG options. The offset variable is often used in Poisson regression to account for different exposures. In this case, the OFFSET= option specifies Ltime as the offset variable representing different time intervals.

In the REPEATED statement, the SUBJECT= option indicates that the variable ID identifies the observations from a single cluster, and the TYPE=UNSTR option specifies the unstructured working correlation structure. The CORRW option requests that the working correlation matrix be displayed.

The "Model Information" table that is displayed in Output 44.2.1 provides information about the specified model and the input data set.

Output 44.2.1: Model Information

The GEE Procedure

Model Information
Data SetWORK.SEIZURE
DistributionPoisson
Link FunctionLog
Dependent VariableCount
Offset VariableLtime


Output 44.2.2 displays general information about the GEE model analysis.

Output 44.2.2: GEE Model Information

GEE Model Information
Correlation StructureUnstructured
Within-Subject EffectVisit (5 levels)
Subject EffectID (58 levels)
Number of Clusters58
Correlation Matrix Dimension5
Maximum Cluster Size5
Minimum Cluster Size5


Output 44.2.3 displays the parameter estimate covariance matrices, which are requested by the COVB option. Both model-based and empirical covariances are produced.

Output 44.2.3: Covariance Matrices of Parameter Estimate

Covariance Matrix (Model-Based)
 Prm1Prm2Prm3Prm4
Prm10.012100.004902-0.01210-0.004902
Prm20.0049020.006660-0.004902-0.006660
Prm3-0.01210-0.0049020.024610.01299
Prm4-0.004902-0.0066600.012990.01852

Covariance Matrix (Empirical)
 Prm1Prm2Prm3Prm4
Prm10.02597-0.003069-0.025970.003069
Prm2-0.0030690.0085970.003069-0.008597
Prm3-0.025970.0030690.03841-0.006196
Prm40.003069-0.008597-0.0061960.02237


The exchangeable working correlation matrix is displayed in Output 44.2.4. It shows that there are noticeable correlations among the respective visits.

Output 44.2.4: Working Correlation Matrix

Working Correlation Matrix
 Obs 1Obs 2Obs 3Obs 4Obs 5
Obs 11.00000.79200.71900.81110.6582
Obs 20.79201.00000.48590.65520.4566
Obs 30.71900.48591.00000.69880.4171
Obs 40.81110.65520.69881.00000.6464
Obs 50.65820.45660.41710.64641.0000


The parameter estimates table, shown in Output 44.2.5, contains parameter estimates, standard errors, confidence intervals, Z scores, and p-values for the parameter estimates. Empirical standard error estimates are used in this table.

Output 44.2.5: Parameter Estimates Table

Parameter Estimates for Response Model
with Empirical Standard Error Estimates
ParameterEstimateStandard
Error
95% Confidence LimitsZPr > |Z|
Intercept1.33090.16121.01511.64688.26<.0001
X10.11280.0927-0.06890.29451.220.2237
Trt-0.10340.1960-0.48750.2807-0.530.5978
X1*Trt-0.31620.1496-0.6093-0.0231-2.110.0345


The estimate of is –0.3162, which indicates that progabide is effective in reducing the rate of epileptic seizures.

Model fit criteria for the model are displayed in Output 44.2.6. These criteria are used in selecting regression models and working correlations.

Output 44.2.6: Model Fit Criteria

GEE Fit Criteria
QIC-1036.2837
QICu-1041.8041