studentsTTest

Two-sample T test for a difference in means, assumes variances of samples are equal. Alteratives are Alt.less, meaning mean(sample1) - mean(sample2) < testMean, Alt.greater, meaning mean(sample1) - mean(sample2) > testMean, and Alt.twoSided, meaning mean(sample1) - mean(sample2) != testMean.

sample1 and sample2 may be either iterables with elements implicitly convertible to double or summary structs (see isSummary).

  1. ConfInt studentsTTest(T data, double testMean = 0, Alt alt = Alt.twoSided, double confLevel = 0.95)
  2. ConfInt studentsTTest(T sample1, U sample2, double testMean = 0, Alt alt = Alt.twoSided, double confLevel = 0.95)
    studentsTTest
    (
    T
    U
    )
    (
    ,,
    double testMean = 0
    ,,
    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 difference between means of sample1 and sample2 at the specified level.

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

Meta