statinfer
    Preparing search index...

    Interface TTestOptions

    Options for tTest. Pass x alone for a one-sample test, or x and y for a paired or two-sample test.

    interface TTestOptions {
        alternative?: Alternative;
        confidenceLevel?: number;
        equalVariance?: boolean;
        mu?: number;
        paired?: boolean;
        x: readonly number[];
        y?: readonly number[];
    }
    Index
    alternative?: Alternative

    "greater" means the mean (or mean difference) is above mu. Default: "two-sided".

    confidenceLevel?: number

    Default: 0.95.

    equalVariance?: boolean

    Use the pooled-variance test instead of Welch's. Default: false.

    mu?: number

    The hypothesised mean (or mean difference). Default: 0.

    paired?: boolean

    Treat x and y as matched pairs. Default: false.

    x: readonly number[]

    The first (or only) sample.

    y?: readonly number[]

    The second sample, for paired or two-sample tests.