Sib-pair Command: kruskal-wallis


ClassAnalysis and data manipulation command
Namekruskal-wallis
Arguments <quantitative trait> <trait>

Print table of means for the quantitative trait for each level of factor, along with the Kruskal-Wallis chi-square.

Example:

>> set loc treatment qua
>> set loc response qua
>> read cas inline
1   1 2
2   1 3
3   1 3
4   1 3
5   1 3
6   1 0
7   2 1
8   2 3
9   2 1
10  2 2
11  2 2
12  2 3
13  3 3
14  3 1
15  3 2
16  3 1
17  3 3
18  3 3
19  4 1
20  4 0
21  4 0
22  4 0
23  4 0
24  4 -1
;;;;
>> run
>> tab treatment response
>> kruskal-wallis response treatment

<< (llm)Up to index>> (regress)