eelbrain.test.ttest(y, x=None, against=0, match=None, sub=None, corr='Hochberg', title='{desc}', data=None, tail=0)

T-tests for one or more samples

  • y (Union[Var, str]) – Dependent variable

  • x (Union[Factor, Interaction, NestedEffect, str]) – Perform tests separately for all categories in x.

  • against (Union[float, str, Tuple[str, ...]]) – Baseline against which to test (scalar or category in x).

  • match (Union[Factor, Interaction, NestedEffect, str]) – Repeated measures factor.

  • sub (Union[Var, ndarray, str]) – Only use part of the data.

  • corr (Union[bool, Literal['hochberg', 'bonferroni', 'holm']]) – Method for multiple comparison correction (default ‘hochberg’).

  • title (str) – Title for the table.

  • data (Dataset) – If a Dataset is given, all data-objects can be specified as names of Dataset variables

  • tail (Literal[-1, 0, 1]) – Tailedness of the test.


table – Table with results.

Return type

FMText Table