pairedTTest

Paired T test. Tests the hypothesis that the mean difference between corresponding elements of before and after is testMean. Alternatives are Alt.less, meaning the that the true mean difference (beforei - afteri) is less than testMean, Alt.greater, meaning the true mean difference is greater than testMean, and Alt.twoSided, meaning the true mean difference is not equal to testMean.

before and after must be input ranges with elements implicitly convertible to double and must have the same length.

  1. ConfInt pairedTTest(T before, U after, double testMean = 0, Alt alt = Alt.twoSided, double confLevel = 0.95)
    pairedTTest
    (
    T
    U
    )
    (
    ,,
    double testMean = 0
    ,,
    double confLevel = 0.95
    )
    if (
    doubleInput!(T) &&
    &&
    isInputRange!T
    &&
    isInputRange!U
    )
  2. ConfInt pairedTTest(T diffSummary, double testMean = 0, Alt alt = Alt.twoSided, double confLevel = 0.95)

Return Value

Type: ConfInt

A ConfInt containing the T statistic, the P-value, and the boundaries of the confidence interval for the mean difference between corresponding elements of sample1 and sample2 at the specified level.

References: http://en.wikipedia.org/wiki/Student%27s_t-test

Meta