Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "stats/chi2test/docs/types/index.d"

Index

Interfaces

Functions

Functions

Export assignment chi2test

  • Performs a chi-square independence test.

    throws

    first argument must be an array of arrays or ndarray-like object with dimension two

    Parameters

    • x: ndarray | Array<Array<number>>

      two-way table of cell counts

    • Optional options: Options

      function options

    Returns Results

    test results

    Example

    Example

    var x = [ [ 20, 30 ], [ 30, 20 ] ];
    var out = chi2test( x );
    // returns { 'rejected': false, 'alpha': 0.05, 'pValue': ~0.072, ... }