measured values
function options
test results
var x = [ 1, 3, 5, 2, 4, 6, 8, 7, 10, 11, 12, 15 ];
var f = [ 'control', 'treatA', 'treatB', 'treatC', 'control', 'treatA', 'treatB', 'treatC', 'control', 'treatA', 'treatB', 'treatC' ];
var out = anova1( x, f );
// returns {...}
Perform a one-way analysis of variance (ANOVA).
must provide valid options
factor
must have at least two unique elementslength of
x
must be greater than or equal to twox
andfactor
must have the same length