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

    Interface FisherTestOptions

    Options for fisherTest.

    interface FisherTestOptions {
        alternative?: "l" | Alternative | "two" | "g";
        B?: number;
        confInt?: boolean;
        confLevel?: number;
        midp?: boolean;
        or?: number;
        simulatePValue?: boolean;
    }
    Index
    alternative?: "l" | Alternative | "two" | "g"

    Alternative hypothesis: "two.sided", "less" or "greater". Default "two.sided". Unambiguous abbreviations are accepted. Used for 2 x 2 tables only.

    B?: number

    Number of replicates for simulatePValue. Default 2000.

    confInt?: boolean

    Compute a confidence interval for the odds ratio (2 x 2 tables only). Default true.

    confLevel?: number

    Confidence level of the interval (2 x 2 tables only). Default 0.95.

    midp?: boolean

    The mid-p version of the test of a 2 x 2 table (as exact2x2::fisher.exact(x, midp = TRUE)): the p-value and the confidence limits from the mid-p tails P(X < x) + P(X = x)/2 and P(X > x) + P(X = x)/2 of the (1, 1) cell; the two-sided p-value is twice the smaller tail (the central test) and the estimate stays the conditional MLE. An error for larger tables. Default false.

    or?: number

    Odds ratio under the null hypothesis (2 x 2 tables only). Default 1.

    simulatePValue?: boolean

    Compute the p-value of an r x c table (larger than 2 x 2) by Monte Carlo simulation with B replicates (R's simulate.p.value), using the random stream of setSeed as R does. Ignored for 2 x 2 tables. Default false.