kingang
例:第五版流行病学一个关于口服避孕药(oc)与心肌梗死(Mi)关系的case-control例题
按年龄分层的结果
<40 岁 >=40岁
服oc 未服oc 服oc 未服oc
病例 21 26 18 88
对照 17 59 7 95
data king.a;
do group=1 to 2;
do r=1 to 2;
do c=1 to 2 ;
input freq @@;
output;
end;
end;
end;
cards;
21 26 17 59 18 88 7 95
;
proc freq;
tables r*c/nocol norow nopct cmh;
weight freq;
run;
proc freq;
tables r*c/nocol norow nopct cmh;
weight freq;
by group;
run;
由上以程序能得出不分层的or值,分层的or值,但如何在sas中得出分层后的总or值.在SAS中怎样编程??
firelife
proc freq;
tables group*r*c/nocol norow nopct cmh measures;
weight freq;
run;
priss111
proc freq;
tables group*r*c/nocol norow nopct cmh measures;
weight freq;
exact or;
run;
laywin
proc freq order=data;
tables group*row*col/all;
weight freq;
run;