UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

SPSS Code Fragment: 
GEE Models for Correlated Binary Data

These examples are from Chapter 8 of Generalized Linear Models by John P. Hoffmann. The data set can be downloaded from the companion website for the book.  Please note that the genlin command was introduced in version 15 of SPSS.

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.

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.

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.

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.


How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California