statinfer
    Preparing search index...

    Interface CorrelationTestOptions

    Options for correlationTest.

    interface CorrelationTestOptions {
        alternative?: Alternative;
        confidenceLevel?: number;
        method?: "pearson" | "spearman";
        x: readonly number[];
        y: readonly number[];
    }
    Index
    alternative?: Alternative

    "greater" tests for positive correlation, "less" for negative.

    confidenceLevel?: number

    Default: 0.95. Used for Pearson's confidence interval.

    method?: "pearson" | "spearman"

    Default: "pearson".

    x: readonly number[]

    The first variable.

    y: readonly number[]

    Must be the same length as x.