eelbrain.Interaction

class eelbrain.Interaction(base)

Represents an Interaction effect.

Usually not initialized directly but through operations on Factors/Vars.

Parameters:

base (sequence) – List of data-objects that form the basis of the interaction.

Variables:

base (list) – All effects.

Methods

aggregate(x)

as_cells()

All values as a list of tuples.

as_factor([delim, name])

Convert the Interaction to a factor

as_labels([delim])

All values as a list of strings.

as_var(labels[, default, name])

Convert into a Var

count(value[, start])

Cumulative count of the occurrences of value

enumerate_cells([name])

Enumerate the occurrence of each cell value throughout the data

index(cell)

Array with int indices equal to cell

index_opt(cell)

Find an optimized index for a given cell.

isin(cells)

An index that is true where the Interaction equals any of the cells.

sort_index([descending, order])

Create an index that could be used to sort this data_object.