eelbrain.test.TTestOneSample

class eelbrain.test.TTestOneSample(y, match=None, sub=None, data=None, popmean=0, tail=0)[source]

One-sample t-test

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

  • match (Factor | Interaction | NestedEffect | str) – Units within which measurements are related (e.g. ‘subject’ in a within-subject comparison).

  • sub (Var | ndarray | str) – Perform the test with a subset of the data.

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

  • popmean (float) – Population mean to test against (default 0).

  • tail (int) – Which tail of the t-distribution to consider: 0: both (two-tailed, default); 1: upper tail (one-tailed); -1: lower tail (one-tailed).

mean

Mean of y.

Type:

float

t

T-value.

Type:

float

p

P-value.

Type:

float

tail

Tailedness of the p value (0, 1 or -1).

Type:

int

df

Degrees of freedom.

Type:

int

d

Cohen’s d.

Type:

float

full

Full description of the test result.

Type:

FMText

Methods