The OpenD Programming Language

welchTTest

Two-sample T-test for difference in means. Does not assume variances 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).

welchTTest
(
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