numeric array
function options
test results
var arr = [
2.9, 3.0, 2.5, 2.6, 3.2,
3.8, 2.7, 4.0, 2.4,
2.8, 3.4, 3.7, 2.2, 2.0
];
var groups = [
'a', 'a', 'a', 'a', 'a',
'b', 'b', 'b', 'b',
'c', 'c', 'c', 'c', 'c'
];
varout = kruskalTest( arr, {
'groups': groups
});
// returns {...}
Computes the Kruskal-Wallis test for equality of medians.
first numeric array
second numeric array
function options
test results
// Data from Hollander & Wolfe (1973), p. 116:
var x = [ 2.9, 3.0, 2.5, 2.6, 3.2 ];
var y = [ 3.8, 2.7, 4.0, 2.4 ];
var out = kruskalTest( x, y );
// returns {...}
Computes the Kruskal-Wallis test for equality of medians.
first numeric array
second numeric array
third numeric array
function options
test results
// Data from Hollander & Wolfe (1973), p. 116:
var x = [ 2.9, 3.0, 2.5, 2.6, 3.2 ];
var y = [ 3.8, 2.7, 4.0, 2.4 ];
var z = [ 2.8, 3.4, 3.7, 2.2, 2.0 ];
var out = kruskalTest( x, y, z );
// returns {...}
Computes the Kruskal-Wallis test for equality of medians.
first numeric array
second numeric array
third numeric array
fourth numeric array
function options
test results
Computes the Kruskal-Wallis test for equality of medians.
first numeric array
subsequent numeric arrays and an optional options object
test results
Computes the Kruskal-Wallis test for equality of medians.
must provide at least two array-like arguments if
groups
is not setmust provide valid options