Var.aggregate(self, x, func=<function mean at 0x7fb40c742a60>, name=None)

Summarize cases within cells of x

x : categorial

Model defining cells in which to aggregate.

func : callable

Function that converts arrays into scalars, used to summarize data within each cell of x.

name : str

Name of the output (default is the current name).

aggregated_var : Var

A Var instance with a single value for each cell in x.