eelbrain.Factor.aggregate

Factor.aggregate(x, name=None)

Summarize the Factor by collapsing within the cells of x

Raises an error if there are cells that contain more than one value.

Parameters:
  • x (Factor | Interaction | NestedEffect | str) – A categorial model defining cells to collapse.

  • name (str) – Name of the output Factor (default is current name).

Returns:

A copy of self with only one value for each cell in x.

Return type:

factor