The GENMOD Procedure

Generalized Estimating Equations

(View the complete code for this example.)

This section illustrates the use of the REPEATED statement to fit a GEE model, using repeated measures data from the "Six Cities" study of the health effects of air pollution (Ware et al. 1984). The data analyzed are the 16 selected cases in Lipsitz et al. (1994). The binary response is the wheezing status of 16 children at ages 9, 10, 11, and 12 years. The mean response is modeled as a logistic regression model by using the explanatory variables city of residence, age, and maternal smoking status at the particular age. The binary responses for individual children are assumed to be equally correlated, implying an exchangeable correlation structure.

The data set and SAS statements that fit the model by the GEE method are as follows:

data six;
   input case city$ @@;
   do i=1 to 4;
      input age smoke wheeze @@;
      output;
   end;
   datalines;
 1 portage   9 0 1  10 0 1  11 0 1  12 0 0
 2 kingston  9 1 1  10 2 1  11 2 0  12 2 0
 3 kingston  9 0 1  10 0 0  11 1 0  12 1 0
 4 portage   9 0 0  10 0 1  11 0 1  12 1 0
 5 kingston  9 0 0  10 1 0  11 1 0  12 1 0
 6 portage   9 0 0  10 1 0  11 1 0  12 1 0
 7 kingston  9 1 0  10 1 0  11 0 0  12 0 0
 8 portage   9 1 0  10 1 0  11 1 0  12 2 0
 9 portage   9 2 1  10 2 0  11 1 0  12 1 0
10 kingston  9 0 0  10 0 0  11 0 0  12 1 0
11 kingston  9 1 1  10 0 0  11 0 1  12 0 1
12 portage   9 1 0  10 0 0  11 0 0  12 0 0
13 kingston  9 1 0  10 0 1  11 1 1  12 1 1
14 portage   9 1 0  10 2 0  11 1 0  12 2 1
15 kingston  9 1 0  10 1 0  11 1 0  12 2 1
16 portage   9 1 1  10 1 1  11 2 0  12 1 0
;
proc genmod data=six;
   class case city;
   model  wheeze = city age smoke  /  dist=bin;
   repeated  subject=case / type=exch covb corrw;
run;

The CLASS statement and the MODEL statement specify the model for the mean of the wheeze variable response as a logistic regression with city, age, and smoke as independent variables, just as for an ordinary logistic regression.

The REPEATED statement invokes the GEE method, specifies the correlation structure, and controls the displayed output from the GEE model. The option SUBJECT=CASE specifies that individual subjects be identified in the input data set by the variable case. The SUBJECT= variable case must be listed in the CLASS statement. Measurements on individual subjects at ages 9, 10, 11, and 12 are in the proper order in the data set, so the WITHINSUBJECT= option is not required. The TYPE=EXCH option specifies an exchangeable working correlation structure, the COVB option specifies that the parameter estimate covariance matrix be displayed, and the CORRW option specifies that the final working correlation be displayed.

Initial parameter estimates for iterative fitting of the GEE model are computed as in an ordinary generalized linear model, as described previously. Results of the initial model fit displayed as part of the generated output are not shown here. Statistics for the initial model fit such as parameter estimates, standard errors, deviances, and Pearson chi-squares do not apply to the GEE model and are valid only for the initial model fit. The following figures display information that applies to the GEE model fit.

Figure 45.27 displays general information about the GEE model fit.

Figure 45.27: GEE Model Information

The GENMOD Procedure

GEE Model Information
Correlation StructureExchangeable
Subject Effectcase (16 levels)
Number of Clusters16
Correlation Matrix Dimension4
Maximum Cluster Size4
Minimum Cluster Size4


Figure 45.28 displays the parameter estimate covariance matrices specified by the COVB option. Both model-based and empirical covariances are produced.

Figure 45.28: GEE Parameter Estimate Covariance Matrices

Covariance Matrix (Model-Based)
 Prm1Prm2Prm4Prm5
Prm15.74947-0.22257-0.534720.01655
Prm2-0.222570.45478-0.0024100.01876
Prm4-0.53472-0.0024100.05300-0.01658
Prm50.016550.01876-0.016580.19104

Covariance Matrix (Empirical)
 Prm1Prm2Prm4Prm5
Prm19.33994-0.85104-0.83253-0.16534
Prm2-0.851040.473680.057360.04023
Prm4-0.832530.057360.07778-0.002364
Prm5-0.165340.04023-0.0023640.13051


The exchangeable working correlation matrix specified by the CORRW option is displayed in Figure 45.29.

Figure 45.29: GEE Working Correlation Matrix

Working Correlation Matrix
 Col1Col2Col3Col4
Row11.00000.16480.16480.1648
Row20.16481.00000.16480.1648
Row30.16480.16481.00000.1648
Row40.16480.16480.16481.0000


The parameter estimates table, displayed in Figure 45.30, 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. A table that displays model-based standard errors can be created by using the REPEATED statement option MODELSE.

Figure 45.30: GEE Parameter Estimates Table

Analysis Of GEE Parameter Estimates
Empirical Standard Error Estimates
Parameter EstimateStandard
Error
95% Confidence LimitsZPr > |Z|
Intercept -1.27513.0561-7.26504.7148-0.420.6765
citykingston-0.12230.6882-1.47131.2266-0.180.8589
cityportage0.00000.00000.00000.0000..
age 0.20360.2789-0.34310.75020.730.4655
smoke 0.09350.3613-0.61450.80160.260.7957