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

    Interface TTestOptions

    Options for tTest.

    interface TTestOptions {
        alternative?: "l" | Alternative | "two" | "g";
        confLevel?: number;
        mu?: number;
        paired?: boolean;
        varEqual?: boolean;
    }
    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. Default 0.95.

    mu?: number

    True mean under the null hypothesis (difference in means for two samples). Default 0.

    paired?: boolean

    Paired t-test on x - y (pairs with NaN are dropped). Requires y. Default false.

    varEqual?: boolean

    Assume equal variances and use the pooled variance. Default false (Welch's test).