|
Chapter Contents |
Previous |
Next |
| The GENMOD Procedure |
proc genmod data=resp;
class id center;
model outcome=center2 active female age baseline / dist=bin;
repeated subject=id(center) / logor=fullclust;
run;
The results of fitting the model are displayed in Output 29.6.1 along with a table that shows the correspondence between the log odds ratio parameters and the within cluster pairs.
Output 29.6.1: Results of Model Fitting
data zin;
keep id center z1-z6 y1 y2;
array zin(6) z1-z6;
set resp ;
by center id;
if first.id
then do;
t = 0;
do m = 1 to 4;
do n = m+1 to 4;
do j = 1 to 6;
zin(j) = 0;
end;
y1 = m;
y2 = n;
t + 1;
zin(t) = 1;
output;
end;
end;
end;
run;
proc print data=zin (obs=12);
run;
Output 29.6.2 displays the full z-matrix for the first two clusters. The z-matrix is identical for all clusters in this example.
Output 29.6.2: Full z-Matrix Data Set|
|
proc genmod data=resp;
class id center;
model outcome=center2 active female age baseline / dist=bin;
repeated subject=id(center) / logor=zfull
zdata=zin
zrow =(z1-z6)
ypair=(y1 y2) ;
run;
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.