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 = bartlettTest( arr, {
'groups': groups
});
// returns {...}
Compute Bartlett’s test for equal variances.
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 = bartlettTest( x, y );
// returns {...}
Compute Bartlett’s test for equal variances.
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 = bartlettTest( x, y, z );
// returns {...}
Compute Bartlett’s test for equal variances.
first numeric array
second numeric array
third numeric array
fourth numeric array
function options
test results
Compute Bartlett’s test for equal variances.
first numeric array
subsequent numeric arrays and an optional options object
test results
Compute Bartlett’s test for equal variances.
must provide at least two array-like arguments if
groups
is not setmust provide valid options