kruskalwallis | R Documentation |
Performs a Kruskal-Wallis rank sum test on each row/column of the input matrix.
row_kruskalwallis(x, g)
col_kruskalwallis(x, g)
x |
numeric matrix. |
g |
a vector specifying group membership for each observation of x. |
row_kruskalwallis(x, g)
- Kruskal Wallis test on rows.
col_kruskalwallis(x, g)
- Kruskal Wallis test on columns.
Results should be the same as running kruskal.test(x, g)
on every row (or column) of x
a data.frame where each row contains the results of a Kruskal-Wallis
test performed on the corresponding row/column of x.
Each row contains the following information (in order):
1. obs.tot - total number of observations
2. obs.groups - number of groups
4. df - degrees of freedom
5. statistic - chi-squared statistic
6. pvalue - p.value
Karolis Koncevičius
kruskal.test()
col_kruskalwallis(iris[,1:4], iris$Species)
row_kruskalwallis(t(iris[,1:4]), iris$Species)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.