eelbrain.test.RankCorrelation

class eelbrain.test.RankCorrelation(y, x, sub=None, data=None)

Spearman rank correlation between y and x

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

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

  • sub (index) – 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.

  • data (Dataset) –

Variables:
  • r (float) – Spearman rank correlation coefficient.

  • p (float) – Two-tailed p-value.

Methods