/******************************************************************************
 * Programme : Introduction Example 3 for PROC GENMOD (GEE)
 * Reference : INTROD0A01
 * Source    : https://www.wearecas.eu/en/sampleCode/INTROD0A01
 ******************************************************************************/

/* --- BLOC 1 --- */
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
 ...
;

/* --- BLOC 2 --- */
proc genmod data=six;
   class case city;
   model  wheeze(event='1') = city age smoke  /  dist=bin;
   repeated  subject=case / type=exch covb corrw;
run;

