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

    Interface OddsRatioResult

    Result of oddsRatio.

    interface OddsRatioResult {
        confInt: [number, number];
        confLevel: number;
        estimate: number;
        method: string;
        pValue: { chiSquare: number; fisher: number; midp: number };
        warnings: string[];
    }
    Index
    confInt: [number, number]

    [lower, upper].

    confLevel: number

    The confidence level.

    estimate: number

    The odds ratio: the median-unbiased estimate ("midp"), the conditional MLE ("fisher") or the sample odds ratio x11 x22 / (x12 x21) ("wald", "score").

    method: string

    epitools' description of the method (e.g. "median-unbiased estimate & mid-p exact CI").

    pValue: { chiSquare: number; fisher: number; midp: number }

    epitools' p-values of independence, the same for every method.

    Type Declaration

    • chiSquare: number

      Pearson's chi-squared test without continuity correction.

    • fisher: number

      Fisher's exact two-sided p-value (as fisherTest).

    • midp: number

      The two-sided mid-p exact p-value: twice the smaller one-sided mid-p value P(X < a) + P(X = a)/2.

    warnings: string[]

    R's warnings ("Chi-squared approximation may be incorrect" where an expected count is below 5).