data shu2;
input x $ y numcell;
cards;
A 1 52 B 1 60 C 1 50
A 2 64 B 2 59 C 2 65
A 3 24 B 3 52 C 3 74
;
proc freq data =shu2;
weight numcell;
tables x*y/chisq expected nopercent nocol norow;
run;
data shu2;
input x $ y numcell;
cards;
A 1 52 B 1 60 C 1 50
A 2 64 B 2 59 C 2 65
A 3 24 B 3 52 C 3 74
;
proc freq data =shu2;
weight numcell;
tables x*y/chisq expected nopercent nocol norow;
run;
proc freq data =shu2;
tables x*y/chisq expected nopercent nocol norow;
weight numcell;
run; 注:试试weight numcell;在
tables x*y/chisq expected nopercent nocol norow;之前,调试。