Skip to content

TTestOptions

TTestOptions = object

Defined in: t-test.ts:10

How the samples relate, and what the p-value is measured against.

optional alternative?: TTestAlternative

Defined in: t-test.ts:29

Defaults to "two-sided".


optional paired?: boolean

Defined in: t-test.ts:16

Treat the two samples as matched by index and test their differences. Ignored when the second argument is a hypothesised mean rather than a sample.


optional pooled?: boolean

Defined in: t-test.ts:26

Pool the two variances into one (Student’s original form) instead of letting them differ (Welch’s).

Defaults to false, and should usually stay there: pooling is only valid when the variances really are equal, and Welch’s form costs almost nothing when they are.