eelbrain.pipeline.TTestIndependent

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

Independent measures t-test (comparing groups of subjects)

Parameters
  • model (str) – The model which defines the cells that are used in the test. Usually "group".

  • c1 (str | tuple) – The experimental group. Should be a group name.

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

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

Examples

Sample test definitions, assuming that the experiment has two groups called 'younger' and 'older':

variables = {
    'age': GroupVar(['younger', 'older']),
}
tests = {
    'old=young': TTestIndependent('group', 'older', 'younger'),
    'old>young': TTestIndependent('group', 'older', 'younger', tail=1),
}

Methods

as_dict()

make(y, ds, force_permutation, kwargs)

make_uv(y, ds)

make_vec(y, ds, force_permutation, kwargs)