class eelbrain.pipeline.TTestRelated(model, c1, c0, tail=0)

Related measures t-test

  • model (str) – The model which defines the cells that are used in the test. It is specified in the "x % y" format (like interaction definitions) where x and y are variables in the experiment’s events.

  • c1 (str | tuple) – The experimental condition. If the model is a single factor the condition is a str specifying a value on that factor. If model is composed of several factors the cell is defined as a tuple of str, one value on each of the factors.

  • c0 (str | tuple) – The control condition, defined like c1.

  • tail (int) – Tailedness of the test. 0 for two-tailed (default), 1 for upper tail and -1 for lower tail.


Sample test definitions:

tests = {
    'surprising=expected': TTestRelated('surprise', 'surprising', 'expected'),


For a t-test between two epochs, use an EpochCollection epoch and model='epoch'.



make(y, ds, force_permutation, kwargs)

make_uv(y, ds)

make_vec(y, ds, force_permutation, kwargs)