# 多个样本的非参数检验的两两比较_两独立样本非参数检验

5496℃

data sample ;
do group = 1 to 3 ;
input x @@;
output ;
end ;
cards ;
9.8 0.6 0.4 10.2 1.2 1.9 10.6 2.0 2.2 13.0
2.4 2.5 14.0 3.1 2.8 14.8 4.1 3.1 15.6 5.0
3.7 15.6 5.9 3.9 21.6 7.4 4.6 24.0 13.6 7.0
;
proc freq ;
tables group*x/ scores = rank cmh2 noprint;
run;
proc npar1way wilcoxon;
class group;
var x;
run;
proc rank data =sample out = a ;
var x;
ranks r;
proc anova;
class group ;
model r = group ;
means group/ lsd snk ;
run;
quit;
, M+ g. I- p* z3 `. v8 ~

data sample2;
do effect = 1 to 4 ;
do group = 1 to 3 ;
input f @@;
output ;
end ;
end ;
cards ;
10 24 48 17 41 65 19 33 36 4 7 8
;
proc freq;
tables group*effect/ scores = rank cmh2 noprint;
weight f;8 [! n! \* V5 U/ C+ {2 T# l& G
run;
data a;
set sample2;
do i = 1 to f ;
output;
end ;
run;
proc npar1way wilcoxon data=a;
var effect;
class group;
run;
proc rank data=a out=b;
var effect ;
ranks r;
run;
proc glm;
class group;
model r = group ;
means group/lsd snk tukey dunnett ;
run;
quit;

( c3 ` k0 D3 t! o. ^* ]

% Z! a) |# u, w

data sample3;
do block = 1 to 7 ;
do treat = 1 to 4 ;
input x @@;
output;
end;
end ;
cards ;
63 188 138 54 90 238 220 144 54
300 83 92 45 140 213 100 54 175
150 36 72 300 163 90 64 207 185 87
;
proc freq ;
tables block*treat*x/ scores = rank cmh2 noprint;
run;
proc sort data=sample3 out=a;
by block ;
run;

proc rank data=a out=b;
var x;
by block;
ranks r ;
run;
proc glm data=b ;
class treat block ;
model r = treat block/ ss1 ;
lsmeans treat/ stderr pdiff ;
run;
quit;

• 在线沟通，请点我在线咨询

• 咨询热线：
13261671783
客服qq：
3285157825