eelbrain.test.Correlation

class eelbrain.test.Correlation(y, x, sub=None, data=None)[source]

Pearson product moment correlation between y and x

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

  • x (Var | NDVar | str) – Second variable. Needs to have same type/shape as y.

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

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

r

Pearson correlation coefficient.

Type:

float

p

Two-tailed p-value.

Type:

float

df

Degrees of freedom.

Type:

int

Methods