title: Repeated subject multivariate regression in SAS: PROC GENMOD
body: <p>I have patient eye data. Each eye is assigned EyeID and each patient is assigned PatientID. Each patient has 2 eyes. I am doing multivariate logistic regression with PROC GENMOD. To adjust for the fact that there are 2 eyes per patient, I used the option repeated subject=PatientID(EyeID). Is this correct?</p>
  
  <p>I have pasted my code below. </p>
  
  <pre><code>proc genmod data=test descend;
        class PatientID EyeID Explan1 Explan2 Explan3 / param=ref;
        model Therapy = Explan1 Explan2 Explan3/ dist=bin;
        repeated subject=PatientID(EyeID) / corr=unstr corrw;
     run;
  </code></pre>