eelbrain.test.TTest1Sample¶
-
class
eelbrain.test.
TTest1Sample
(y: Union[eelbrain._data_obj.Var, str], match: Union[eelbrain._data_obj.Factor, eelbrain._data_obj.Interaction, eelbrain._data_obj.NestedEffect, str] = None, sub: Union[eelbrain._data_obj.Var, numpy.ndarray, str] = None, ds: eelbrain._data_obj.Dataset = None, tail: int = 0)¶ 1-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 : None | index-array
Perform the test with a subset of the data.
- ds : None | Dataset
If a Dataset is specified, all data-objects can be specified as names of Dataset variables.
- 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).
Attributes: - 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.