Transform statistic#

Apply a function to groups of a statistic, and add the result as a statistic to the experiment.

First, the module groups the data by the unique values of the variables in By, then applies Function to the values in each group. This is repeated for each feature (column) in the statistic.

Name

The operation name. Becomes the new statistic’s name.

Statistic

The statistic to apply the function to.

Feature

The column of the statistic to apply the function to.

Function

The function to compute on each group.

Subset

Only apply the function to a subset of the input statistic.

Ignore Incomplete Subsets

Should we ignore groups with an incomplete number of levels? Defaults to True.

Group By

How should we group the statistic before applying the function?