eelbrain.test.correlations

eelbrain.test.correlations(y, x, cat=None, sub=None, ds=None, asds=False)[source]

Correlation with one or more predictors

Parameters:
  • y (Var | str) – First variable

  • x (Var | str | Sequence[Var | str]) – second variable (or list of variables).

  • cat (Factor | Interaction | NestedEffect | str) – Show correlations separately for different groups in the data.

  • sub (Var | ndarray | str) – Use only a subset of the data

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

  • asds (bool) – Return correlations in Dataset instead of Table.

Returns:

correlations – Table or Dataset (if asds=True) with correlations.

Return type:

Table | Dataset