Skip to Main Content

GEE Models for Correlated Binary Data | SPSS Code Fragments

These examples are from Chapter 8 of Generalized Linear Models by John P.
Hoffmann.

Page 156, gee model with independent correlation structure

GENLIN delinq (reference=0) WITH stress cohes
 /MODEL stress cohes
  DISTRIBUTION=BINOMIAL
 /REPEATED SUBJECT=newid   
CORRTYPE=INDEPENDENT COVB=MODEL.

Image gee_logit1

Page 156, gee model with exchangeable correlation structure

GENLIN delinq (reference=0)  WITH stress cohes
 /MODEL stress cohes
  DISTRIBUTION=BINOMIAL
 /REPEATED SUBJECT=newid   
CORRTYPE=EXCHANGEABLE COVB=MODEL
 /PRINT CPS FIT SUMMARY SOLUTION WORKINGCORR.

Image gee_logit2

Image gee_logit3

Page 157, gee model with AR(1) correlation structure

GENLIN delinq (reference=0)  WITH stress cohes
 /MODEL stress cohes
  DISTRIBUTION=BINOMIAL
 /REPEATED SUBJECT=newid  
CORRTYPE=AR(1) COVB=MODEL
 /PRINT CPS FIT SUMMARY SOLUTION WORKINGCORR.

Image gee_logit4

Image gee_logit5

Page 157, gee model with unstructured correlation structure

GENLIN delinq (reference=0)  WITH stress cohes
 /MODEL stress cohes
  DISTRIBUTION=BINOMIAL
 /REPEATED SUBJECT=newid   
CORRTYPE=UNSTRUCTURED COVB=MODEL
 /PRINT CPS FIT SUMMARY SOLUTION WORKINGCORR.

Image gee_logit6

Image gee_logit7