eelbrain.test.TTestOneSample

class eelbrain.test.TTestOneSample(y, match=None, sub=None, ds=None, popmean=0, tail=0)

One-sample t-test

Parameters
  • y (Var) – Dependent variable.

  • match (categorial) – Units within which measurements are related (e.g. ‘subject’ in a within-subject comparison).

  • sub (index-array) – Perform the test with a subset of the data.

  • ds (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 (0 | 1 | -1) – Which tail of the t-distribution to consider: 0: both (two-tailed, default); 1: upper tail (one-tailed); -1: lower tail (one-tailed).

Variables
  • mean (float) – Mean of y.

  • t (float) – T-value.

  • p (float) – P-value.

  • tail (0 | 1 | -1) – Tailedness of the p value.

  • df (int) – Degrees of freedom.

Methods