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

    Interface CorTestOptions

    Options for corTest.

    interface CorTestOptions {
        alternative?: "l" | Alternative | "two" | "g";
        confLevel?: number;
        continuity?: boolean;
        exact?: boolean;
        method?: string & {} | CorMethod;
    }

    Hierarchy (View Summary)

    Index
    alternative?: "l" | Alternative | "two" | "g"

    Alternative hypothesis: "two.sided", "less" or "greater". Default "two.sided". Unambiguous abbreviations such as "two", "l" and "g" are accepted, as in R.

    confLevel?: number

    Confidence level of the interval (Pearson only; the interval needs at least 4 pairs). Default 0.95.

    continuity?: boolean

    Apply a continuity correction when the approximation is used (Kendall and Spearman). Default false.

    exact?: boolean

    Compute an exact p-value (Kendall and Spearman). Default: as in R, exact when there are no ties and n < 50 (Kendall) or n <= 1290 (Spearman). With ties the approximation is always used. Kendall's exact distribution takes about n^3 / 2 steps: for n above 1290 (about 5 s) exact: true without ties is a RangeError (R computes it however long it takes).

    method?: string & {} | CorMethod

    Correlation coefficient to compute. Default "pearson". Unambiguous abbreviations are accepted.