eelbrain.test.ttest

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

Parameters:
  • y (Var | str) – Dependent variable

  • x (Factor | Interaction | NestedEffect | str) – Perform tests separately for all categories in x.

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

  • match (Factor | Interaction | NestedEffect | str) – Repeated measures factor.

  • sub (Var | ndarray | str) – Only use part of the data.

  • corr (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.

Returns:

table – Table with results.

Return type:

FMText Table