eelbrain.pipeline.TTestIndependent
- class eelbrain.pipeline.TTestIndependent(model, c1, c0, tail=0)[source]
Independent measures t-test (comparing groups of subjects)
- Parameters:
model (str) – The model which defines the cells that are used in the test. Can be
"group"to compare two groups defined on the pipeline.c1 (CellArg) – The experimental group. Should be a group name.
c0 (CellArg) – The control group, defined like
c1.tail (int) – Tailedness of the test.
0for two-tailed (default),1for upper tail and-1for lower tail.
See also
Examples
Sample test definitions, assuming that the experiment has two groups called
'younger'and'older':groups = { 'younger': Group(['S001', 'S002']), 'older': Group(['S011', 'S012']), } tests = { 'older=younger': TTestIndependent('group', 'older', 'younger'), 'older>younger': TTestIndependent('group', 'older', 'younger', tail=1), }