title 'All Combinations (6 Choose 3) for Exercise 2.2';
ods output Plan=Combinations;
proc plan;
factors Combination=20 ordered
Unit= 3 of 6 comb;
output out=perms unit nvals=(10 15 50 12 17 19);
run;
proc transpose data=perms;
by combination;
run;
proc print;
run;
/*Exercise 2.7-2.8*/
data ta2_6_2;
input group siblings @@;
datalines;
1 3
1 2
1 1
1 1
1 2
1 1
1 3
1 2
1 2
1 2
1 2
1 5
1 1
1 4
1 1
1 1
1 1
1 1
1 6
1 2
1 2
1 2
1 1
1 1
2 1
2 0
2 1
2 1
2 0
2 0
2 1
2 1
2 1
2 8
2 1
2 1
2 1
2 0
2 1
2 1
2 2
;
proc npar1way data=ta2_6_2 anova scores=data wilcoxon;
class group;
exact wilcoxon;
var siblings;
run;