rStats.js v1.3.0
    Preparing search index...

    Interface ChisqTestOptions

    Options for chisqTest.

    interface ChisqTestOptions {
        B?: number;
        correct?: boolean;
        nMinus1?: boolean;
        p?: readonly number[];
        rescaleP?: boolean;
        simulatePValue?: boolean;
    }
    Index
    B?: number

    Number of replicates for simulatePValue. Default 2000.

    correct?: boolean

    Apply Yates' continuity correction (2 x 2 tables only). Default true.

    nMinus1?: boolean

    The 'N - 1' chi-squared test (Campbell 2007; not in R): Pearson's statistic times (N - 1) / N, without continuity correction, for a contingency table (2 x 2 or larger). Default false. An error for goodness of fit (a vector or a matrix with one row or column), with simulatePValue, and with correct: true given explicitly (the default correction is not applied).

    p?: readonly number[]

    Expected probabilities for the goodness-of-fit test. Default: equal probabilities. Ignored for contingency tables.

    rescaleP?: boolean

    Rescale p to sum to 1. Default false, in which case p must sum to 1.

    simulatePValue?: boolean

    Compute the p-value by Monte Carlo simulation with B replicates (R's simulate.p.value), using the random stream of setSeed as R does. Default false.