eelbrain.Interaction.count
- Interaction.count(value=None, start=-1)[source]
Cumulative count of the occurrences of
value- Parameters:
- Returns:
count – Cumulative count of value in self, with one value per case.
- Return type:
Examples
>>> a = Factor('abcabcccc') >>> b = Factor('aaabbbccc') >>> i = a % b >>> i.count() Var([0, 0, 0, 0, 0, 0, 0, 1, 2]) >>> i.count(('c', 'c')) Var([-1, -1, -1, -1, -1, -1, 0, 1, 2])