Performs a chi-square independence test.
first argument must be an array of arrays or ndarray-like object with dimension two
two-way table of cell counts
function options
test results
var x = [ [ 20, 30 ], [ 30, 20 ] ]; var out = chi2test( x ); // returns { 'rejected': false, 'alpha': 0.05, 'pValue': ~0.072, ... }
Performs a chi-square independence test.
first argument must be an array of arrays or ndarray-like object with dimension two